Have you added any new hardware? It could be the psu (Power suply Unit) is failing.
I had a phaze of this happening when I added a new dvd drive. I just bought a higher wattage psu. Seems to be working fine now.
Surface Pro (2017) vs Surface Pro 4
20 groundbreaking 3D animation techniques
How to mine Bitcoin on Mac