Restart Loop, System Restore doesn't solve the problem

So about a day ago my desktop began displaying the blue screen upon login and then instant restart. I was not able to access safe mode as it did the exact same thing. I tried startup repair, memory diagnostics tool, system recovery, nothing worked. so i cleared everything on my drive (unfortunately) only to find once i got to "set up is preparing your computer for first use" an error message saying something along the lines of "the installation has unexpectedly restarted, please restart to install windows", no blue screen. Everytime i restart, its the same thing. I really have no idea where to go from here and would seriously appreciate help!

This website is not affiliated, owned, or endorsed by Microsoft Corporation. It is a member of the Microsoft Partner Program.