Arduino has some strange reactions

You mentioned to use a choke on "either side", what did you mean by that?

No it was a capacitor on each side of the choke.

The other advice I have given you before is to use a snubber circuit. That is what cncb is saying.