The are multiple factors wich can cause this kind of problems.
Disable Turbo in UEFI to see whether the issue occurs when the system is running at the processor default speed.
2. Power supply:
Make sure that the power supply has enough wattage to appropriately handle the installed devices. If you added memory, installed a newer processor, installed additional drives, or added external devices, such devices can require more energy than the current power supply can provide consistently.
Check whether the system is overheating by examining the internal temperature of the hardware.
Reinstall the system drivers and see whether the issue persists.
5. Windows 10:
Windows 10 is still not as stable as previous versions, and still has many errors and need further improvement.
This issue can be a known Windows 10 issue (issue wich can be solved by installing another build)