UnrealBuildTool crashing on single file compile

same error as @anonymous_user_5349fa72 in UE4.27.2. However, it works with editor open in UE5.0.0 preview 2