When it comes to using USB3 perpherals of any sort, e.g. desktop hard drives, portable SSDs, M.2 NVMe drive enclosures, CF and SD card readers, etc., I use the shortest cables possible, to reduce the chance of data corruption.
On a desktop PC, if I encounter problems using the front panel USB-A or USB-C ports, I move the device round to the back of the computer for direct connection to the motherboard. This removes up to 1.5ft (50cm) of internal case wiring, between the motherboard and the front panel.
I've just purchased some 1ft (30cm) Amazon Basics USB-A to USB-C cables for use with my Crucial X6 2TB portable SSD. One of my 1.5ft (50cm) leads was throwing up errors. If the drive came with a short cable, stick with it unless it generates faults. It's kept short for a very good reason.
I use a program called FreeFileSync to transfer photos from my camera memory cards to a laptop. FreeFileSync recovers gracefully from errors in the middle of copying. It also has a handy facility to perform a 'byte-by-byte' comparison of the original files on the SD card with the files copied to the laptop. If there are any discrepancies, you can re-copy the corrupted file(s).
https://freefilesync.org/
To set FreeFileSync for a full comparison of source and destination folders, click the blue cog wheel next to 'Compare' and select 'File Content' from the drop down menu.