Welcome to Tom's Hardware Forums!
You have properly identified the issue. USB (ans SATA) have a limited life as far as plug/unplug is concerned. In this particular case, the contact pressure is inadequate. A new cable might solve the issue.
On my Nikon DSLR, I do not unplug the USB cable. This is a little inconvenient, but works well.