The same thing happened to me last spring, very baffling. Starting a new blank project did not solve the problem.
Someone on the board suggested a rollback to an earlier restore point in Windows. That solved it.
I’ve never gotten an explanation as to why this happens.