You could try changing a line in the target files
under the line
DefaultBuildSettings = BuildSettingsVersion.V5;
add in
IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_3;
it will enforce the correct build order for 5.3 (otherwise it can build with 5.2 that can be diffferent)