Strange sensitivity issue..

The weird thing is it triggers seemingly random pin

It is not weird it is to be expected. The long wires act like antenna and inject picked up crap into the circuits.

Try a pull up of 510R, if that doesn’t fix it then you need some differential buffers at each end of your cable. Something like an RS485 buffer.