Controller Issue (Sending Unintentional Inputs)

I am playing Siralim Ultimate on windows 10 using a PS4 controller. Sometimes my USB cable wiggles the wrong way in the USB port of my controller and the controller no longer sends inputs to the game. Okay, that is normal, so that’s not the issue. The issue is that whenever this happens, the game is receiving an input as if I had pushed the “X” button on the PS4 controller. The result of which is that if I have a menu up at the time, especially a purchase menu, I will buy things that I might not want accidentally and lose some precious resources this way just because I wasn’t holding my controller at the perfect angle.

I thought I was the only 1 having this issue lol