Why Electro Mechanical Relay makes controller reset?
if the maximum output current of the voltage regulator feeding the circuit is exceeded its output voltage drops causing a drop in the supply voltage of the chip in the arduino, and the chip resets if its supply voltage is under the minimum recommanded value giving in the datasheet.