Which version of Visual Studio are you using exactly? Did you update to the latest version?
You could try to reset all settings back to the defaults as described here: https://learn.microsoft.com/en-us/visualstudio/ide/personalizing-the-visual-studio-ide?view=vs-2022 and/or try to repair/reinstall visual studio as described here: https://learn.microsoft.com/en-us/visualstudio/ide/how-to-report-a-problem-with-visual-studio?view=vs-2022
You could try to report the problem to microsoft as described here: https://learn.microsoft.com/en-us/visualstudio/ide/how-to-report-a-problem-with-visual-studio?view=vs-2022