Over 900 seconds of compilation time!

Believe the backwards compatible settings is just a message and isn’t the issue here. Epic had changed the compilation previously to not include as much when building https://docs.unrealengine.com/en-US/Programming/BuildTools/UnrealBuildTool/IWYU/index.html That message says it can be suppressed if seeing it is an issue for you.

And there have even been times that it has compiled with decent timing.

Since you’re unwilling to show code and don’t say exactly what you’re doing, maybe you’re running into this or some other issue:

You have to understand, its really difficult if you don’t show code or say all of what you’ve changed or done. Since it does have good speed at times then it should obviously be from what you’re doing.