Mobile USB 3.0 disconnects from Mac if I barely touch it on my desk

My 1 TB mobile USB 3.0 G-Drive disconnects when I have to shift anything, like the MacBook or the G-Drive. Each time, OSX gives me a warning about not properly disconnecting. Then, if I jiggle the cable at the G-Drive connection, it connects back to the computer. Is this likely to be a cable issue or a G-Drive cable receptacle issue? I’m in a remote location, so it would be good to have an idea before ordering new parts.

It is possible the cable could be the issue but if it is that loose then the port is the likely culprit meaning you would need another external housing(enclosure) or replacement drive.