Packaging a VR project, Cook fails with Array index out of bounds error

I’ve been having trouble Packaging my VR project, after cleaning it up and attempting to build multiple times, I reached 1 consistent and reproducible error:

UATHelper: Cooking (Windows):   LogWindows: Error: begin: stack for UAT
UATHelper: Cooking (Windows):   LogWindows: Error: === Critical error: ===
UATHelper: Cooking (Windows):   LogWindows: Error:
UATHelper: Cooking (Windows):   LogWindows: Error: Assertion failed: (Index >= 0) & (Index < ArrayNum) [File:D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Public\Containers/Array.h] [Line: 707]
UATHelper: Cooking (Windows):   LogWindows: Error: Array index out of bounds: 822092288 from an array of size 2245

Is it something specific to my project or a system configuration issue?

My Specs:
Windows 10, latest update
ASUS Z490
Intel i9 10900k
64GB Corsair RAM
nvme ssd
ZOTAC 3090RTX, latest video drivers
Valve Index + Steam VR

Unreal Engine 5.0 Early Access 2 (unfortunately I noticed the project’s potential when I was deep in development, and it seems like there is no way to downgrade…)

I just wanted to say that I fixed this by compiling UE5 from it’s main branch in epic’s Git. Unreal Engine 5.1 seems to have fixed the issue, so if anyone else is struggling the fix is to either recompile by hand or wait for UE5’s release.