I have strange issue. I am using 570X Aorus Pro. If I plug in USB-C to the computer the computer reboots. Once the connector is seated all works fine.
It is often enough if I kinda short the USB-C jack to the IO shield with the USB plug, you know when fooling around with the jack without seeing. Other USB doesn’t have this issue.
Interestingly, this seems to have started to happen after I started using earthed mains, having my PC earthed properly. Wonder if this has anything to do with it.
You might be dealing with a ground loop that’s going through the USB port that’s causing it to reboot the machine once you connect anything to it. That’s why you weren’t seeing it happen when the mains didn’t have an earth to them. And if you’re experiencing this especially if you touch the backplate I’d get a multimeter and check for a ground loop on the I/O shield.
In very few words a ground loop is a a situation in which two adjacent parts of a circuit should have the same electrical potential to ground but instead one of them is seeing an higher one, causing electricity to flow the opposite way inside the other part of the circuit to reach earth.
What you can do to verify if it’s a ground loop, beside using a multimeter, is just setting the motherboard on a carboard box and see if the issue keeps happening. It might be happening for a miriad of reasons: the motherboard is not grounded properly to the case, the PSU is not properly grounded and it’s “charging” the case (and, in turn, getting the I/O shield to a different potential causing the issue), there’s might be a problem with the electrical shielding in the motherboard (very unlikely, just listing possible culprit).
tl;dr Take everything out of the case and see what happens. If it’s fixed something is not right with a component ground, in my opinion. If it doesen’t there might be bent pins in the USB C connector on the motherboard (I guess you used different devices connected to the same connector and they all cause the system to reboot).