LeoF_225 +1 on testing the cable first. USB 3.x cables can look perfectly fine while having an intermittent connection.
I'd do a very simple isolation test:
Plug the drive directly into a rear motherboard USB port if you're on a desktop.
Don't use a USB hub or front-panel extension.
Try another known-good cable.
If it's a portable 2.5" HDD powered entirely over USB, try another computer.
If it still disconnects on another computer with another cable, I'd stop blaming Windows. At that point the enclosure or the drive becomes much more suspicious.
Also, if there's important data on it, I'd copy that data somewhere else before doing a bunch of stress tests.