So i watched one of the optimize win10 for gaming and after restarting my pc ran into a problem and then restarted and did it again. Then it started aic repair and
How to Resolve Windows 10 Automatic Repair Loop - MiniTool
Automatic Repair Loop Fix Windows 10 [Tutorial] - YouTube