Anytime I restart my computer or the power goes off it doesn't restart correctly. Basically, there is a black screen with a spinning circle with dots and it will stay that way for hours. The only solution I've found is to insert the windows 10 anniversary update usb I made and do a startup repair. But it keeps happening again and again.

However, if I shut it down normally, it starts back up just fine.

When I first installed the anniversary update it got stuck. I left the computer on for 12 hours with no progress (same spinning icon). However, I pressed the button and it fixed the installation.