My wired mouse keeps disconnecting
I have a mac mini (2011) and for the last few months the wired mouse that I have been using for years, randomly disconnects and reconnects after a random amount of time. It is a problem that persists even if I unplug the mouse and put it back in or change the USB port to any of the ones available to me (both directly on the machine and on the keyboard), or turn the machine off and on.
I had assumed it was an issue with the mouse cable but I recently tried another known mouse and it had the same problem, also persisting through port changes and unpluggings. Interestingly if I plug in both mice at the same time, they both disconnect and reconnect simultaneously. It is also only a problem with the mouse not any other USB accessories.
I cannot update the software any higher and considering sometimes the mouse is unusable for literally hours I need to find out how to fix it, especially since I work from home.
Also it is not a problem under my Linux partition.
Is there some setting or cache that I can reset or clear in order to fix this?
Mac mini, macOS 10.13