Computer keeps freezing after about 40 min to 1 hour idle.

GhostXXIV

Prominent
Mar 27, 2017
18
0
520
Ok, so I have a huge problem with my PC... Let me tell you what I have before I tell you the problem.

I built a PC salvaging the SSD and two HDDs from an Alienware.
Asus Z270E mobo
2x8GB 2400mhz Crucial Ballistix ram
i7 6700k 4.0 (tried overclocking, system says it is not overclocked however)
Corsair H100i V2 liquid cooler
Nvidia GeForce GTX 1080

This is the issue I'm having:
At first, I upgraded both the cpu and gpu from an i5 6400 and the GPU from a 1070 to a 1080 at once. Everything was working fine, and then all of a sudden I started having the 1080 driver uninstall and install itself. I checked under Device Manager and it would become unidentifiable and I could not manually install the driver. Eventually, I installed the Asus MOBO drivers which installed Intel Management Engine and other drivers. Afterward, the problem with the 1080 went away, but after about one hour of idling in the lock screen, the PC would freeze and I would have to restart it. Then, the PC would turn on and freeze as Windows was loading. It kept happening in random places sometimes, but usually it wouldn't while I was using the system itself. Only while idle. At the same time, I was noticing the bios was not allowing me to overclock the cpu. I would change the settings, and it would turn on without overclocking. Same stuff kept happening, and now it wouldn't boot, so I removed the ram because the ram LED would stay on before posting then switch to the cpu LED. When I removed one stick, it finally posted and now it won't boot. I get a blue screen with the error saying "inaccessible boot device"

Should I give up, lose everything I had and reinstall Windows?