Could aswell be a small mistake within the custom built PC, perhaps short circuit / overheat.
The method you can find below should do the trick; reboot your PC after having changed the settings.
Start button -> Control Panel -> System and Maintenance -> System -> Advanced system settings (left side, Task Panel) -> Startup and Recovery -> Settings and then uncheck "Automatically restart" (under System Failure).