Intermittent power from NPN transistor

You exceeded the maximum ratings for every device, Arduino, transistor and LED. You are lucky anything is still working (and may be somewhat degraded even so). Perhaps your power source gave out and saved the components from total burn out?