the ATmega sporadically resets as if it is drawing too much power.
That is not the only cause of random resets.
You have to test what the power supply is giving you using a meter but better would be an oscilloscope because that would show the dips and if you had too much ripple.