UE5 Preferred Version

You can override the compiler version and sdk version inside of the BuildConfiguration.xml file that is in Engine\Saved\UnrealBuildTool