I suggest you refer to a post of mine on this very forum:
Windows 10 “Revival” Script for When You’re Experiencing Issues
These are the steps I take as a matter of course, skipping whatever may not apply in a given case, and stopping when any given step prior to a completely clean reinstall solves the problem.
I very seldom have to go beyond a Repair Install, but it does happen on rare occasions.