Unsupported or missing image file

openslide.lowlevel.OpenSlideUnsupportedFormatError: Unsupported or missing image file

I got error when I ran this command to generate the corresponding patches how can I solve it? thank you!
|2022-05-19|10:45:09.732| [INFO] … Process: A1
|2022-05-19|10:45:10.526| [ERROR] Crash
Traceback (most recent call last):
File “/content/drive/MyDrive/hover50/infer/wsi.py”, line 746, in process_wsi_list
self.process_single_file(wsi_path, msk_path, self.output_dir)
File “/content/drive/MyDrive/hover50/infer/wsi.py”, line 470, in process_single_file
self.wsi_handler = get_file_handler(wsi_path, backend=wsi_ext)
File “/content/drive/MyDrive/hover50/misc/wsi_handler.py”, line 201, in get_file_handler
return OpenSlideHandler(path)
File “/content/drive/MyDrive/hover50/misc/wsi_handler.py”, line 108, in init
self.file_ptr = openslide.OpenSlide(file_path) # load OpenSlide object
File “/usr/local/lib/python3.7/dist-packages/openslide/init.py”, line 160, in init
self._osr = lowlevel.open(filename)
File “/usr/local/lib/python3.7/dist-packages/openslide/lowlevel.py”, line 129, in _check_open
“Unsupported or missing image file”)
openslide.lowlevel.OpenSlideUnsupportedFormatError: Unsupported or missing image file
|2022-05-19|10:45:10.532| [INFO] … Process: A10

Could you verify the format/validity of the image file? e.g., print the path of the problematic image and inspect it?