1st thing to do is to try to get stop message rather than pc shutting down. Go to Control Panel, System, Advanced, Settings, Start Up and Recovery then uncheck box Automatic Restart.
Post details on blue screen.
Surface Pro (2017) vs Surface Pro 4
20 groundbreaking 3D animation technologies coming to Siggraph 2017
iPad Pro 12.9 vs Surface Pro 5
Synology invites you to visit them at Insomnia on 26th – 29th August. Book your tickets now and visit Synology.