Packaged game crashes immediatly upon startup inside ntdll.dll

Packaged game crashes immediatly upon startup inside ntdll.dll. The program works fine in the editor and in uncooked mode.
Here is the stack trace:

ntdll.dll!RtlpWaitOnCriticalSection() Unknown
ntdll.dll!RtlpEnterCriticalSectionContended() Unknown
ntdll.dll!RtlEnterCriticalSection() Unknown
inLoopVR.exe!00007ff6867463d3() Unknown
inLoopVR.exe!00007ff686736777() Unknown
inLoopVR.exe!00007ff686721f44() Unknown
inLoopVR.exe!00007ff68a121a28() Unknown
inLoopVR.exe!00007ff6867db3f1() Unknown
inLoopVR.exe!00007ff685cd4480() Unknown
ucrtbase.dll!_initterm() Unknown
inLoopVR.exe!00007ff689ff6198() Unknown
kernel32.dll!BaseThreadInitThunk() Unknown
ntdll.dll!RtlUserThreadStart() Unknown