### ImageMagick version

7.1.1-15 Q16-HDRI aarch64

### Operating system

MacOS

### Operating system, version and so on

14.0

### Description

I have 559 frames that I want to merge into a GIF file, each frame is less than 500 KB. The total folder size is 276 MB. It immediately eat 64GB of memory and started swapping. When I checked and stopped it, it used nearly 1 TBW for swapping.

### Steps to Reproduce

I executed ```magick convert  -delay 10 -loop 0 *.png LowH.gif``` to generate the GIF, it never finished and keeps swapping the memory for nearly 1TB written.

### Images

<img width="556" alt="Screenshot 2023-10-18 at 23 47 24" src="https://github.com/ImageMagick/ImageMagick/assets/39162855/bff75aeb-83aa-4e23-b364-978614d09b70">
<img width="225" alt="Screenshot 2023-10-18 at 23 47 59" src="https://github.com/ImageMagick/ImageMagick/assets/39162855/36abcc15-d460-4723-80e5-e874b6c3d3d0">

Significant Memory Used for a total of 276 MB Images (559 frames)
This is a GitHub Issue
repo:ImageMagick
owner:ImageMagick
Title : Significant Memory Used for a total of 276 MB Images (559 frames)
Issue date:

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

7.1.1-15 Q16-HDRI aarch64

### Operating system

MacOS

### Operating system, version and so on

14.0

### Description

I have 559 frames that I want to merge into a GIF file, each frame is less than 500 KB. The total folder size is 276 MB. It immediately eat 64GB of memory and started swapping. When I checked and stopped it, it used nearly 1 TBW for swapping.

### Steps to Reproduce

I executed ```magick convert  -delay 10 -loop 0 *.png LowH.gif``` to generate the GIF, it never finished and keeps swapping the memory for nearly 1TB written.

### Images

<img width="556" alt="Screenshot 2023-10-18 at 23 47 24" src="https://github.com/ImageMagick/ImageMagick/assets/39162855/bff75aeb-83aa-4e23-b364-978614d09b70">
<img width="225" alt="Screenshot 2023-10-18 at 23 47 59" src="https://github.com/ImageMagick/ImageMagick/assets/39162855/36abcc15-d460-4723-80e5-e874b6c3d3d0">

--- end body ---
