I need to describe the whole problem. I started to have problems with my PC not turning off, instead it restarted, so I had to disable Fast Start to prevent this problem. After some days I started to have problems with some particular CPU and GPU loads restarting my PC. For example using de CPU-Z stress test caused an instant restart, but using prime95 not. Playing Cities Skylines (CPU intensive) also caused a restart, but a game like League of Legends played fine. Playing videos in youtube caused a restar just when the GPU fan starts (I have an indicator in my Gigabyte card for the fan), but other GPU usage never caused a restart, just youtube videos. At this point everything was already weird.
After some time I started having problems with booting Windows 10, loading and restaring in the BIOS screen before the login screen. Sometimes I could login, but other I had to wait until it could boot. Tried to format my SSD, but the USB had problems booting to run the Windows install.
After so many problems I tried plugin my Laptop drive in my PC to boot, but I had the same problem. I tried my SSD in my laptop and booted fine. It looks like the problem could be the Motherboard/CPU/BIOS.
My PC:
AMD FX8350
Kingston HyperX 32GB DDR3 1866MHz
Gigabyte GA-970A-DS3P
Gigabyte GTX 1060 G1 Gaming 6GB
SSD PNY CS900 480GB
PS Thermaltake SMART 550W 80+ Bronze
Windows 10 Pro 64-Bit