Another possible solution is to verify the engine using the Epic Store app and redownload those files.
In my case, the missing UnrealBuildTool.* and related configs were downloaded and sln project generation began to work.
3 Likes