Unhandled exception when building blank project: Version ("1.2") is not supported version

Just install VS2019 and set UE5’s Source Code Editor to VS2019 in Editor Preferences.