I had similar issues. I tried to reinstall the game, Microsoft Visual Studio redistribution, and even Windows system. Unfortunately, no solution worked for me.
It eventually turned out that it was the Nvidia in-game overlay that conflicted with the MSFS 2020 software. After I turned the in-game overlay off, it works pretty well for my without any issues. Hope it might help you if you are still experiencing the problem.