Your cable is not going bad, i have this issue all the time. the worst is when you lose all mouse movements and your keyboard works, and you have to close the program and reopen it about 5 times or do a full pc reboot.
Yeah, I know that was silly the cable isn't going bad. That's the thing though, nothing else applies.
The PC I use is my old gaming PC that has almost nothing else running, CPU/Memory issues are not happening.
Xim Apex moving / Controller Unplugging can't happen. I have all of the cables managed leading into a cabinet and they have zero movement on both ends.
Headset is wireless and stays functional the entire time.
I don't run any AHK scripts, Link has a blank profile.
This only leaves random error caused by the program, from your list. Like I said though, I've run this setup for a LONG time and this is very new in the past few days. It's occurring to the point where games are unplayable.