There are a few things that can cause something like that to happen.
1. the GPU driver was either not properly installed or you downloaded one with a virus contained in it.
2. Registry error, this kind of things happeneds but tends to be a one off.
3. The PSU wasn't providing sufficient power to boot, this can be caused by either the ATX 12V power line or the CPU power line not being securely plugged in causing instability or the PSU being bad.
Hope this helps!