https://winaero.com/how-to-stop-an-automatic-repair-loop-in-windows-10-and-windows-8/
How to stop an automatic repair loop in Windows 10 and Windows 8