#4000: extended JM_MAX_ERROR_MESSAGE_SIZE to avoid truncated messages.