First read http://gadgets.itwriting.com/3085-when-windows-8-will-not-boot-the-automatic-repair-disaster.html . It says to look at the contents of the log file to see what's wrong and if you can fix it. Boot into a Linux disk or stick to do that..
If you can't fix it, remove all partitions from the drive (can be done from Linux also). Then see if Windows will install from the disk again. If not erase the disk using a program like DBAN and try again.
The alternative is to install Windows on a new disk, put this disk in an enclosure and try to fix it later.
I just got done building my pc and it was fine but Windows 10 kept freezing and it got so bad that I had to system restore every time so I decided to Rest my Pc and Remove everything. I'm now always prompted srt trail etc etc. I can't rest my pc anymore my hard drive is locked, I can't restore (obviously) and I can't even load into safe mode or anything Windows is basically always diagnosing my pc and I end up on the Choose an option screen. I then tried installing Windows 10 and I enter in my product key I go to custom and my hard drive and I can't download it because it has an MBR partition table. I didn't encounter this before when I first installed Windows. I can't format it either with the format button What do I do now.
My Mobo is a gigabyte z170xp-sli
Hard drive is a segate
Cpu Intel 6500