Microcontroller freezes randomly when switching on a relay (snubber inside)

Maybe, but not as bad as another recent thread where we are providing support to a non-engineer in a commercial context, because the company laid off the engineer. :no_mouth: