I have similar issues and they seem to appear after ios 17 and the new heic file type. I transfer pictures from my iPhone to PC over usb cable and use drag and drop. Viewing iphone pictures in Windows either shows heic, jpg or a mix. If all photos on iphone show up as heic in Windows, drag and drop works, but if some photos shown as jpg strange things happen
1) The Foto app in Windows can't open the pictures on the iphone nor in Windows folder, it times out
2) file names are shifted around between photos when having a mix of hiec and jpg photos
3) instead of copying the photo the icons are copied, happen for 50-100 % of the photos on iphone
After a fresh start of the PC and connection with the iphone it works but at some time something breaks and the above starts to appear.
Today I did set the "keep original" flag for the photos app on my iphone, maybe it helped because no issues right now.