I was able to resolve the issue by following the steps in this post - https://forums.unrealengine.com/t/ue5-5-0-branch-build-error-chaos/260629/9?u=zonc_sg
Basically creating the missing folder “…\Engine\Restricted\NotForLicensees\Build”, modifying BuildConfiguration.xml, and running GenerateProjectFiles.bat again.