Thunderstorm reseting my micro-controller
simulate this circuit &ndash; Schematic created using CircuitLab
If Relay switching current is 500mA max and contact R init. = MAX 200 mΩ  with 5V across Cap Imax= 25A neglecting wire resistance.
Then use Twisted pair throughout or STP wire.
Added R2 may be reduced to  10mA which is the typical Reed Relay longest MTBF rating (mechanical stress only)  Thus 5V/10mA= 470 Ohm to 1k (5mA)  . Although magnet operated glass gas-filled Reed Relays do not oxidize like non-gold contact air exposed switches which require 10% rated wetting current. Reeds ought to be good from 0 to 500mA unless specified otherwise.