There are some processes that, if they terminate, then the OS shuts down. That appears to be what is happening here. Causes of this include hard drive corruption where the program is stored, memory corruption when the program runs, a malicious program that is tampering with the program, etc.
Unfortunately diagnosing this would be difficult. If possible I would recommend you scan the drive for errors and then check memory for issues. You can do this using tools outside of Windows such as Memtest86 if you cannot boot into Windows at all.
Unless you have technical knowledge of debugging then the only other option I can think of, if repairing doesn't work, is to reinstall Windows from scratch. If you have spare memory you can swap out memory to eliminate that as a problem. If you have a spare drive then you could also swap it out. I'm assuming you don't have any malicious software but it might not hurt to run a scan as well but you'd need to get AV that can run from a boot disk if you cannot boot into Windows.