I’m not sure if this will help you since my project is small, but it definetly helped me (went from 3 minutes compiling time to 3 seconds in my first project (just started learning)):
Go to:
C:\Users\YOUUSERNAME\AppData\Roaming\Unreal Engine\UnrealBuildTool.xml
edit it with the following code:
I found that in this threat:
Compilation taking twice as long in UE5: Number of processes being limited? - Programming & Scripting / C++ - Unreal Engine Forums