PS3 controller random button press


My ps3 controller right now sometimes does random button presses on its own. Not all the time, but sometimes. Using the reset button on its back will sometimes solve the problem, but doesn’t work every time.

I looked up online and it says it’s because my controller’s ribbon cable is loose and I need to make it contact better, but my model of ps3 controller is very old and its setup is different every video I find on youtube. My circuit board has a socket for the ribbon so it’s not just simple contact. So which one is causing the problem? The ribbon plastic? Or the socket? And how do I fix it? I know where I can buy the ribbon plastic, but I don’t know where I can find a replacement socket.