What typically helps to fix it is deleting the Solution User Options aka “SUO”.
VS up to 2013
In the older VS it is stored as a “hidden” SolutionName.suo
in the same folder as the main .sln
file.
VS2015 or later
In VS2015 the same data was moved to a “hidden” .vs
folder under the same folder as the main .sln
file.