I recommend increasing the resources (both memory and CPUs). Nextjs will allocate new workers if resources are available and do parallel building per dynamic segment