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

I get them from a commercial multi-purpose snubber I found in AliExpress.