### 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 ---
