Basically something shorted out in your GPU.
Your PSU detected a short and turned off as a security feature.
If it ran for 12 hours most likely the GPU was defective and not a bad hookup job.
Just send it in for warranty
I'm glad to hear that, should I try to power on my system with the Intel graphics? I don't think I hooked up anything wrong, I've made three builds in my life and I'm not an expert but I did follow the manual and tutorials to the letter.
Also, it ran I think even more than twelve hours, because there was also the time I spent installing windows, installing drivers, etc....
Do you see any burnt spots on the back of your GPU or does it have a backplate (just asking out of curiosity)?
Like
adaseb said, just try RMA it

I can't see anything, I wanted to take it apart to check for burnt spots but I don't think I'm knowledgeable enough to do that, it seems to have like a radiator and some copper tubes. It does have a backplate, something like this:
http://images.bit-tech.net/content_images/2017/05/aorus-radeon-rx-570-review/aorus570-6b.jpg