Sounds like a fault in the wiring if physical movement changes things, I have watched many mechanics wiggle wires for solutions.
There are some decent mechanical folks on this forum that will likely chime in.
There are some decent mechanical folks on this forum that will likely chime in.