The solution for all your problems is:
Use an image program!
Essentially an image program will make a perfect backup, an image, of your partitions (Hard drives) including your boot sector, operating system, programs, setting etc.
When things go haywire you simply use the program to restore the partition
In other words, you can set back the clock to when your computer was working perfectly.
On a relatively new computer the restore-process is a less than 5 minutes job, and you don’t even have to be by the computer in those 5 minutes.
So you just go make a cup of coffee and return to a perfect PC.
However, to get it perfect, you’ll need a plan!