After trying each one, properlyrebootyour PC to see if the fix has taken worked.
Check you’re booting to the correct drive.
Although unlikely, this fix is so quick and easy it’s worth trying first.

Lifewire
There’s a possibility your PC is trying to boot to the wrong drive.
Boot into Safe Mode.
launch the Fixboot and Chkdsk commands.

Lifewire
Two commands worth trying to get you out of the automatic repair loop areFixbootandChkdsk.
They can target and repair any errors in your hard drive and your Windows boot directory.
To do so, you’ll need to access theStartupSettings menuand press the corresponding number key to disable it.

Maritsa Patrinos/Lifewire
Run Startup Repair from USB/DVD.
you could get around that byrunning Startup Repair from the installation mediayou used for Windows in the first place.
Perform a System Restore.
A more dramatic way to fix the Windows 10 startup repair loop is to reset your Windows 10 installation.
Replace your hard drive.
You could have a damaged or degraded hard drive.
check that to backup your data before doing so.
Maritsa Patrinos/Lifewire
Replace your memory.
Memory issues are hard to diagnose, but they can cause all sorts of problems.
What Is the Windows 10 Automatic Repair Loop?
One of those tools is Startup Repair, which can fix issues with your Windows startup.
This loop may manifest in a black screen that hangs onPreparing Automatic RepairorDiagnosing Your PC.
It isn’t easy to diagnose the cause of the automatic repair loop before fixing it.
The best way to get past thatPreparing Automatic Repairscreen is to try a few fixes and see what works.