Power supply safety relais triggers during startup of Electron

What pins are you using to control the relay?
You may need to stay away from the Dx pins that also double as JTAG pins during boot-up

There are some threads like this one