### ImageMagick version

7.1.1-12

### Operating system

Linux

### Operating system, version and so on

Ubuntu 20.04.6 LTS

### Description

Running the command on my local machine:

```
$ magick IMG20230522091101.heic -quality 85% IMG20230522091101.jpeg
```

creates the jpeg image with message: magick: exif profile size exceeds limit and will be truncated

Running the same command on my server is Aborted, no jpeg image is created

```
$ magick IMG20230522091101.heic -quality 85% IMG20230522091101.jpeg -debug all

2023-06-26T20:10:25+00:00 0:00.000 0.010u 7.1.1 Wand magick[24081]: wandcli.c/AcquireMagickCLI/115/Wand
  MagickWandCLI-0
2023-06-26T20:10:25+00:00 0:00.000 0.010u 7.1.1 Command magick[24081]: magick-cli.c/MagickImageCommand/938/Command
  Initializing "magick"
2023-06-26T20:10:25+00:00 0:00.000 0.010u 7.1.1 Configure magick[24081]: client.c/SetClientName/123/Configure
  magick
2023-06-26T20:10:25+00:00 0:00.000 0.010u 7.1.1 Command magick[24081]: magick-cli.c/ProcessCommandOptions/617/Command
  at CLI arg 1 - Starting ("IMG20230522091101.heic")
2023-06-26T20:10:25+00:00 0:00.000 0.010u 7.1.1 Command magick[24081]: operation.c/CLINoImageOperator/4852/Command
  at CLI arg 1 - NoImage Operator: -read "IMG20230522091101.heic" ""
2023-06-26T20:10:25+00:00 0:00.000 0.010u 7.1.1 Configure magick[24081]: utility.c/ExpandFilenames/975/Configure
  Command line: IMG20230522091101.heic
2023-06-26T20:10:25+00:00 0:00.001 0.010u 7.1.1 Policy magick[24081]: policy.c/IsRightsAuthorized/647/Policy
  Domain: Module; rights=Unrecognized; pattern="HEIC" ...
2023-06-26T20:10:25+00:00 0:00.001 0.010u 7.1.1 Policy magick[24081]: policy.c/IsRightsAuthorized/647/Policy
  Domain: Path; rights=Read; pattern="IMG20230522091101.heic" ...
2023-06-26T20:10:25+00:00 0:00.001 0.010u 7.1.1 Blob magick[24081]: blob.c/OpenBlob/3453/Blob
    read 3 magic header bytes
2023-06-26T20:10:25+00:00 0:00.001 0.010u 7.1.1 Cache magick[24081]: cache.c/DestroyPixelCache/1065/Cache
  destroy 
2023-06-26T20:10:25+00:00 0:00.001 0.010u 7.1.1 Policy magick[24081]: policy.c/IsRightsAuthorized/647/Policy
  Domain: Path; rights=Read; pattern="IMG20230522091101.heic" ...
2023-06-26T20:10:25+00:00 0:00.001 0.010u 7.1.1 Blob magick[24081]: blob.c/OpenBlob/3453/Blob
    read 3 magic header bytes
2023-06-26T20:10:25+00:00 0:00.001 0.010u 7.1.1 Cache magick[24081]: cache.c/DestroyPixelCache/1065/Cache
  destroy 
2023-06-26T20:10:25+00:00 0:00.001 0.010u 7.1.1 Policy magick[24081]: policy.c/IsRightsAuthorized/647/Policy
  Domain: Coder; rights=Read; pattern="HEIC" ...
2023-06-26T20:10:25+00:00 0:00.001 0.010u 7.1.1 Policy magick[24081]: policy.c/IsRightsAuthorized/647/Policy
  Domain: Path; rights=Read; pattern="IMG20230522091101.heic" ...
2023-06-26T20:10:25+00:00 0:00.001 0.010u 7.1.1 Blob magick[24081]: blob.c/OpenBlob/3453/Blob
    read 3 magic header bytes
2023-06-26T20:10:25+00:00 0:00.010 0.020u 7.1.1 Pixel magick[24081]: pixel.c/SetPixelChannelMask/6305/Pixel
  IMG20230522091101.heic[07ffffff]
2023-06-26T20:10:25+00:00 0:00.010 0.020u 7.1.1 Pixel magick[24081]: pixel.c/LogPixelChannels/6189/Pixel
  IMG20230522091101.heic[07ffffff]
2023-06-26T20:10:25+00:00 0:00.010 0.020u 7.1.1 Pixel magick[24081]: pixel.c/LogPixelChannels/6286/Pixel
    0: red (update)
2023-06-26T20:10:25+00:00 0:00.010 0.020u 7.1.1 Pixel magick[24081]: pixel.c/LogPixelChannels/6286/Pixel
    1: green (update)
2023-06-26T20:10:25+00:00 0:00.010 0.020u 7.1.1 Pixel magick[24081]: pixel.c/LogPixelChannels/6286/Pixel
    2: blue (update)
2023-06-26T20:10:25+00:00 0:00.010 0.020u 7.1.1 Resource magick[24081]: resource.c/AcquireMagickResource/390/Resource
  Area: 48MiB/0B/250.757GiB
2023-06-26T20:10:25+00:00 0:00.011 0.020u 7.1.1 Resource magick[24081]: resource.c/AcquireMagickResource/390/Resource
  Memory: 576MiB/576MiB/62.6892GiB
2023-06-26T20:10:25+00:00 0:00.011 0.020u 7.1.1 Cache magick[24081]: cache.c/OpenPixelCache/3803/Cache
  open IMG20230522091101.heic[0] (Heap Memory, 6144x8192x3 576MiB)
Aborted
```

More Info:

```
$ magick --version
Version: ImageMagick 7.1.1-11 Q16-HDRI x86_64 21206 https://imagemagick.org
Copyright: (C) 1999 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI OpenMP(4.5) 
Delegates (built-in): bzlib djvu fontconfig freetype heic jbig jng jpeg lcms lqr lzma openexr pangocairo png tiff webp x xml zlib
Compiler: gcc (9.4)

$ identify IMG20230522091101.heic 
IMG20230522091101.heic HEIC 6144x8192 6144x8192+0+0 8-bit sRGB 915745B 0.010u 0:00.009
```

I am able to convert the example.heic to a jpeg on my server



### Steps to Reproduce

Run on magick IMG20230522091101.heic -quality 85% IMG20230522091101.jpeg using the image attached.

### Images

[IMG20230522091101.zip](https://github.com/ImageMagick/ImageMagick/files/11873824/IMG20230522091101.zip)

Convert heic to jpg aborted on server but not on local machine
This is a GitHub Issue
repo:ImageMagick
owner:ImageMagick
Title : Convert heic to jpg aborted on server but not on local machine
Issue date:

--- start body ---
### ImageMagick version

7.1.1-12

### Operating system

Linux

### Operating system, version and so on

Ubuntu 20.04.6 LTS

### Description

Running the command on my local machine:

```
$ magick IMG20230522091101.heic -quality 85% IMG20230522091101.jpeg
```

creates the jpeg image with message: magick: exif profile size exceeds limit and will be truncated

Running the same command on my server is Aborted, no jpeg image is created

```
$ magick IMG20230522091101.heic -quality 85% IMG20230522091101.jpeg -debug all

2023-06-26T20:10:25+00:00 0:00.000 0.010u 7.1.1 Wand magick[24081]: wandcli.c/AcquireMagickCLI/115/Wand
  MagickWandCLI-0
2023-06-26T20:10:25+00:00 0:00.000 0.010u 7.1.1 Command magick[24081]: magick-cli.c/MagickImageCommand/938/Command
  Initializing "magick"
2023-06-26T20:10:25+00:00 0:00.000 0.010u 7.1.1 Configure magick[24081]: client.c/SetClientName/123/Configure
  magick
2023-06-26T20:10:25+00:00 0:00.000 0.010u 7.1.1 Command magick[24081]: magick-cli.c/ProcessCommandOptions/617/Command
  at CLI arg 1 - Starting ("IMG20230522091101.heic")
2023-06-26T20:10:25+00:00 0:00.000 0.010u 7.1.1 Command magick[24081]: operation.c/CLINoImageOperator/4852/Command
  at CLI arg 1 - NoImage Operator: -read "IMG20230522091101.heic" ""
2023-06-26T20:10:25+00:00 0:00.000 0.010u 7.1.1 Configure magick[24081]: utility.c/ExpandFilenames/975/Configure
  Command line: IMG20230522091101.heic
2023-06-26T20:10:25+00:00 0:00.001 0.010u 7.1.1 Policy magick[24081]: policy.c/IsRightsAuthorized/647/Policy
  Domain: Module; rights=Unrecognized; pattern="HEIC" ...
2023-06-26T20:10:25+00:00 0:00.001 0.010u 7.1.1 Policy magick[24081]: policy.c/IsRightsAuthorized/647/Policy
  Domain: Path; rights=Read; pattern="IMG20230522091101.heic" ...
2023-06-26T20:10:25+00:00 0:00.001 0.010u 7.1.1 Blob magick[24081]: blob.c/OpenBlob/3453/Blob
    read 3 magic header bytes
2023-06-26T20:10:25+00:00 0:00.001 0.010u 7.1.1 Cache magick[24081]: cache.c/DestroyPixelCache/1065/Cache
  destroy 
2023-06-26T20:10:25+00:00 0:00.001 0.010u 7.1.1 Policy magick[24081]: policy.c/IsRightsAuthorized/647/Policy
  Domain: Path; rights=Read; pattern="IMG20230522091101.heic" ...
2023-06-26T20:10:25+00:00 0:00.001 0.010u 7.1.1 Blob magick[24081]: blob.c/OpenBlob/3453/Blob
    read 3 magic header bytes
2023-06-26T20:10:25+00:00 0:00.001 0.010u 7.1.1 Cache magick[24081]: cache.c/DestroyPixelCache/1065/Cache
  destroy 
2023-06-26T20:10:25+00:00 0:00.001 0.010u 7.1.1 Policy magick[24081]: policy.c/IsRightsAuthorized/647/Policy
  Domain: Coder; rights=Read; pattern="HEIC" ...
2023-06-26T20:10:25+00:00 0:00.001 0.010u 7.1.1 Policy magick[24081]: policy.c/IsRightsAuthorized/647/Policy
  Domain: Path; rights=Read; pattern="IMG20230522091101.heic" ...
2023-06-26T20:10:25+00:00 0:00.001 0.010u 7.1.1 Blob magick[24081]: blob.c/OpenBlob/3453/Blob
    read 3 magic header bytes
2023-06-26T20:10:25+00:00 0:00.010 0.020u 7.1.1 Pixel magick[24081]: pixel.c/SetPixelChannelMask/6305/Pixel
  IMG20230522091101.heic[07ffffff]
2023-06-26T20:10:25+00:00 0:00.010 0.020u 7.1.1 Pixel magick[24081]: pixel.c/LogPixelChannels/6189/Pixel
  IMG20230522091101.heic[07ffffff]
2023-06-26T20:10:25+00:00 0:00.010 0.020u 7.1.1 Pixel magick[24081]: pixel.c/LogPixelChannels/6286/Pixel
    0: red (update)
2023-06-26T20:10:25+00:00 0:00.010 0.020u 7.1.1 Pixel magick[24081]: pixel.c/LogPixelChannels/6286/Pixel
    1: green (update)
2023-06-26T20:10:25+00:00 0:00.010 0.020u 7.1.1 Pixel magick[24081]: pixel.c/LogPixelChannels/6286/Pixel
    2: blue (update)
2023-06-26T20:10:25+00:00 0:00.010 0.020u 7.1.1 Resource magick[24081]: resource.c/AcquireMagickResource/390/Resource
  Area: 48MiB/0B/250.757GiB
2023-06-26T20:10:25+00:00 0:00.011 0.020u 7.1.1 Resource magick[24081]: resource.c/AcquireMagickResource/390/Resource
  Memory: 576MiB/576MiB/62.6892GiB
2023-06-26T20:10:25+00:00 0:00.011 0.020u 7.1.1 Cache magick[24081]: cache.c/OpenPixelCache/3803/Cache
  open IMG20230522091101.heic[0] (Heap Memory, 6144x8192x3 576MiB)
Aborted
```

More Info:

```
$ magick --version
Version: ImageMagick 7.1.1-11 Q16-HDRI x86_64 21206 https://imagemagick.org
Copyright: (C) 1999 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI OpenMP(4.5) 
Delegates (built-in): bzlib djvu fontconfig freetype heic jbig jng jpeg lcms lqr lzma openexr pangocairo png tiff webp x xml zlib
Compiler: gcc (9.4)

$ identify IMG20230522091101.heic 
IMG20230522091101.heic HEIC 6144x8192 6144x8192+0+0 8-bit sRGB 915745B 0.010u 0:00.009
```

I am able to convert the example.heic to a jpeg on my server



### Steps to Reproduce

Run on magick IMG20230522091101.heic -quality 85% IMG20230522091101.jpeg using the image attached.

### Images

[IMG20230522091101.zip](https://github.com/ImageMagick/ImageMagick/files/11873824/IMG20230522091101.zip)

--- end body ---

None