Looks like a bad connection. Check everything is connected properly and the boot drive is connected to the first sata port on the motherboard. Sata connections can be a bit 'iffy' so make sure the plug is properly seated on the drive and mobo. Check ram and GPU card also.
Surface Pro (2017) vs Surface Pro 4