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

@Paul_B That only has the H/L jumper (see PCB image on your link) ... I think you meant something like this (link not given as OP may have preferred supplier):

EDIT: Could also use the 5V version with a matching separate power supply.

Here's what the module's schematic should look like:

@mendicm Referring to reply#11, try searching "ferrite core" on the forum for some examples of how this could improve the interference problem. However, I would start with implementing reply#22 even if you already got it working.