Hello, thank you for reaching out to Microsoft Q&A.
If your PC is stuck in "Automatic Repair" - Diagnosing your PC loop, it is possible that your Operating system might be corrupted.
See if you can boot your device in the Windows Recovery environment (WinRE) -
- Start your device and wait for the Windows logo (or the manufacturer's logo) to appear.
- As soon as the Windows logo appears, press and hold the power button until the device shuts down.
- Turn your device on again and repeat step 2.
- Turn your device on a third time. Windows should display the Automatic Repair screen.
You can then select Troubleshoot > Advanced Options and try some system recovery methods such as System Restore, Startup Repair, or running a factory reset without affecting the Personal files.
If your Surface laptop is still stuck on the Automatic Repair loop screen, you will have to create a Windows 10 bootable USB Installation media and use it to repair (OR) reinstall Windows.
Creating and using a USB recovery drive for Surface
Once the USB installation media is ready, see "How to Boot your USB drive on Surface laptop."
Boot Surface from a USB device
On the Install Windows screen, you can select 'Repair my computer' and enter into the WinRE to repair your previous operating system.
If you wish to proceed with a clean installation, you can also do that. However, this method will completely wipe all the data in your HDD.