Interrupt issue

Loose wiring radiates electrical noise very efficiently.

The Arduino and all its wiring must be effectively shielded. Use a well filtered, shielded power supply for the Arduino as well.