Arduino nano crashes - please advise

As already suggested, even by other uses, be sure of the cause (i.e. replacing the relays with LEDs) before attempting to eliminate "potential" issues.