Operating system failing

Jul 17, 2018
3
0
10
Hi, so I built my first pc installed windows 10 on it and everything works for a while but then I get no display, my computer is running, the keyboard and mouse are active, I've had to reinstall windows like 1000 times erasing the hard drive over and over but the same issue still occurs. I don't think it's the graphics card either , my guess is the hard drive or the ram but can't tell which one. I don't want to spend more money if they're both fine and I'm just doing the installation wrong.
specs if it helps
amd fx black edition quad core
16gb ram
gtx 1050ti graphics card
1tb hdd
when I do a hard reset it says the windows did not load properly and gives options to fix it but the same thing happens when it loads back to windows. I just loose display as soon as it goes back to the login screen