ATmega328 random reset

Brown-out detection. Google would tell you that!

My first guess is decoupling. But a photo and/or schematic are very illuminating usually.