Dir fehlt das Grundwissen,

daß Dein Programm abstürzt ist ganz normal, man aktiviert auch keine Interrupts, ohne die pasende Interupt Service Routine.

Und die Sache mit delay, tja
The maximal possible delay is 262.14 ms / F_CPU in MHz.
... sagt das Handbuch zu avr-gcc

Gruß Sebastian