It could have been your AMD driver was corrupted and after you installed it again it fixed the issues or possibly a power issue from the PSU or Windows corruption or Windows Update installed a different AMD driver than the one your install.
Keep using the PC and see if the issue comes back again. If it works normally for a week or longer using your PC than the GPU card should be okay.
Run this simple line command in a elevated Command Prompt/Powershell to check your Windows OS installation:
SFC /scannow
To check your GPU card to make sure it isn't going bad I would download and run OCCT GPU, CPU, & PSU tests. This will stress out the GPU card and if it is going bad it either will stop the OCCT stress test or your PC will crash or shut down.
Also run the CPU and especially the PSU Test which runs both the CPU and GPU Stress test at the same time putting maximum stress on the PSU.
During all the OCCT tests keep a close eye on Temperatures, Fan Speeds, & PSU Outputs (3.3/5.0/12 Vdc).
Can you upload a image of GPU-Z to see if the AMD Driver is working correctly and it showing the correct data for your GPU card?