After my last post I restarted my computer and noticed it still takes very long to boot. The screen goes black for a while before the welcome screen and also stays on that screen for a while too, and then after that I have to wait at least 5-10 minutes before I can do anything because windows runs so slow starting up. I also noticed the bar at the bottom resembled the one in safe mode, so I restarted the computer again and it went back to normal but noticed Intel Rapid Storage wasn't running so I had to manually start it. After that I ran another SFC scan but it found no errors this time. I though the error it found before was causing the problem but now that it seems to be resolved I don't know what's causing the delay.