To add to this, if you have the storage then a solution like Macrium Reflect (or a FOSS alternative) is a great option too. I let my PC back itself up every morning before I wake up, then if something happens to it (virus, broken driver, bad install, etc.), I can just revert it to the state it was in earlier that morning using a recovery drive.
Windows Defender has also gotten pretty good over the past couple years - features like controlled folder access will protect sensitive data from ransomware (I just use it on my backup folder). The combination of the two has been plenty for me to deal with viruses or broken programs - I haven’t had to run a clean install of Windows in 4 years.
Good point - I usually keep two weeks of daily backups just in case