When I turn on the pc, it will try to load, but it will freeze and restart over and over again until it gets to the automatic repair screen. I tried changing the bios settings which worked and got me to the lock screen but then it will freeze when you try to enter your pin or password on windows then it will restart back to automatic repair.
Could be some hdd segments have started to fail and OS happens to be written in those area of hdd. If you need to retrieve data from hdd, connect hdd to another pc as secondary drive and back up files (if those files are written on healthy segments), then do clean install of OS on hdd in X51. Hopefully the failed segments are not big and pc is able to install os on remaining healthy segments. Perhaps time to buy new hdd or ssd for near future back up.