### ImageMagick version

7.1.1-15-portable-Q8-x64

### Operating system

Windows

### Operating system, version and so on

11

### Description

DCM file with more then 8 bits throws error (8 bits works fine) when using Q8 version of ImageMagick. 
All other formats i've tried with more then 8 bits still works with Q8.

This is very niche so feel free to close as "won't do" if you see fit.

### Steps to Reproduce

identify.exe MRBRAIN.DCM

will throw 

<code>identify.exe: memory allocation failed `C:\MRBRAIN.DCM' @ error/colormap.c/AcquireImageColormap/123.
identify.exe: memory allocation failed `C:\MRBRAIN.DCM' @ error/dcm.c/ReadDCMImage/4112.
</code>

### Images

[MRBRAIN.zip](https://github.com/ImageMagick/ImageMagick/files/12619879/MRBRAIN.zip)

DICOM files using Q8 throws memory allocation failed
This is a GitHub Issue
repo:ImageMagick
owner:ImageMagick
Title : DICOM files using Q8 throws memory allocation failed
Issue date:

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

7.1.1-15-portable-Q8-x64

### Operating system

Windows

### Operating system, version and so on

11

### Description

DCM file with more then 8 bits throws error (8 bits works fine) when using Q8 version of ImageMagick. 
All other formats i've tried with more then 8 bits still works with Q8.

This is very niche so feel free to close as "won't do" if you see fit.

### Steps to Reproduce

identify.exe MRBRAIN.DCM

will throw 

<code>identify.exe: memory allocation failed `C:\MRBRAIN.DCM' @ error/colormap.c/AcquireImageColormap/123.
identify.exe: memory allocation failed `C:\MRBRAIN.DCM' @ error/dcm.c/ReadDCMImage/4112.
</code>

### Images

[MRBRAIN.zip](https://github.com/ImageMagick/ImageMagick/files/12619879/MRBRAIN.zip)

--- end body ---

The issue indicates a memory allocation failure when processing DICOM files with more than 8 bits in ImageMagick v7.1.1-15. This could potentially lead to Denial of Service (DoS) if an attacker can craft a DICOM file that triggers this error, causing the application to crash or become unresponsive.