Interrupts problems due to noise

You do appear to have diodes and are optoisolating, which is good. You need lots and lots of capacitors on the arduino side. That is bypassing.