Windows 10 comes with a handy self-repair tool that can fix problems that prevent a proper boot. However, sometimes the tool itself can be the cause of the error, resulting in an endless cycle of automatic repair. If your PC is stuck in an automatic repair loop, there are several solutions you can try to fix the error. The most common cause of a Windows 10 automatic repair cycle is usually missing or corrupt system files.
Other possible causes are usually related to faulty components, malware infections, corrupted system registries, and even broken installation files. To identify the cause of the error, you can use some system repair tools such as the chkdsk command. This initiates a low-level check of the system unit for errors using the Check Disk utility and repairs them automatically if it detects any. If you can go into safe mode, back up your data, restart and check if the system boots normally.
If all this doesn't work, you can try to reset your PC and keep all your files and applications. This will reinstall Windows 10 and keep your data and apps. If you think your Windows is working, you can try to disable the autostart repair system by going to the Windows registry and modifying some values there. You can also access the automatic repair and run it manually by starting from the advanced startup options.
If none of these solutions work, you should contact a professional technician for help. They will be able to identify the cause of the error and provide a more permanent solution.