How can I figure out what's causing my PC to have the GPT Header Corruption issue every morning after an SSD upgrade?

Posted by Huihejfofew@reddit | buildapc | View on Reddit | 2 comments

I recently "upgraded" from a 980 Pro 2tb to a 990 Pro 4tb. All I did was clone it, swap them around and format the 980 Pro fully (including its OS partitions). My motherboard is the MSI PRO Z790-P WIFI.

I've been leaving my PC on at night and I noticed that for the last three mornings I've come back to my PC in the morning and find the GPT Header Corruption error screen. It's a little strange since if I go into bios, do nothing, and reboot it will still give me the same error. If I hit the power button to turn off and then turn it back on it's the same error. I have to manually select my new SSD to boot from and that works fine. And after this even if I physically use the power button to turn it off and on no more error. So I can't seem to recreate what's causing this error to appear. Something just seems to be happening at night such that i come to this error in the morning.

Does anyone know a good way to try to figure out what's causing this error to happen? (or a fix).