When you ran diagnostics did you run it from the Dell splash screen using F12 at boot up? This sure sounds like a hardware issue and mainly the hard drive. The fact that you installed Windows twice but had errors when you ran SFC makes me suspicious.
Welcome to the Dell Community @Maya1998
Click on full "Test"