Esp-01 and 3V3 relay module: unexpected resets (cause 4)
The relay contacts used to switch mains voltage arc and spark when the contacts are closed or opened. The radiated electromagnetic interference from the spark is enough to cause a malfunction in the microcontroller board. This arcing and sparking does not happen when mains is disconnected.