Hello
It sounds like you’re having trouble with your SSD enclosure. There could be a few reasons why your SSD enclosure is only working in USB 2.0 mode and disconnecting with a “hardware IO error” when you try to use it in USB 3.0 mode.
One possibility is that there could be an issue with the cable or connection. You could try reseating the cables connecting your external drive to your computer, or using a different USB cable1. Another possibility is that there could be a glitch with your hard drive or SSD, or a misconfigured driver.
If you continue to have trouble, you might want to consider seeking help from a professional or the manufacturer of your SSD enclosure.
If the response is helpful, please click "Accept Answer" and upvote it.