I had this same problem and I found the solution! You need to open up the Visual Studios Installer, go to your version of Visual Studios and choose modify, then when you select the package for Unreal C++ games development, make sure you check and install both the Unreal Engine Launcher and the Cocos. I’m guessing it’s the Unreal Engine Launcher that actually fixed it, but I added both of those and then it worked. If this doesn’t fix it, you might want to go into Editor Preferences in Unreal and make sure you have the correct version of Visual Studios selected. Hope this helps!