PWM audio amplifier circuit crashes arduino.

You are missing the base resistor! Without that you will destroy your arduino and/or transistors sooner or later...

Wire a 1K resistor between the pin and the transistors.

// Per.