DICOM file cannot be read

I tried processing the slice with segmentation and updated the original slice to release a new DICOM file, but the updated file cannot be read and shown:

"Slicer has caught an application error, please save your work and restart.

If you have a repeatable sequence of steps that causes this message, please report the issue following instructions available at https://slicer.org

The message detail is:

Exception thrown in event: D:\D\S\S-0-build\ITK\Modules\ThirdParty\GDCM\src\gdcm\Source\Common\gdcmException.h:74 ():
Impossible"

After a few attempts, the DICOM file that could be read before now cannot be read as well (, even the original unmodified file cannot be read). I tried to update the 3D Slicer from 5.4.0 to 5.6.2, but it doesn’t work… I don’t even have the true result to see if my experiment is correct.

Could you tell me how I can solve this problem please?
That means a lot to me…

It sounds like your dicom data is bad in some way. You indicated you modified the file in some way, which is probably the source of the issue. it’s very hard to generate valid dicom files, but there are many examples and tools available so you should be able to accomplish what you need if you study carefully.

https://slicer.readthedocs.io/en/latest/user_guide/modules/dicom.html#troubleshooting

If you are still not sure, you’ll need to share your overall goal and the exact data and steps that you follow so people can give you specific advice.