Should I add Capacitance on Switched High Side
In case the cable inductance is creating back emfs that lift the 5 volt power supply (via the body diode of the output MOSFET), I'd want to put a 5.6 volt zener diode on the output like this: -



Adding the capacitors is fine but try this first because it could deliver a reason rather than just a blanket solution.