I recently grabbed the UE 4.27 Plus branch from github and ran into all of these errors while using Visual Studio 2019, but someone suggested to try VS 2022, so I did and that fixed everything.
Make sure to install with the following modules