Did you obtain UE4 from Github? Or are you running UE4 from the Epic Games Launcher? Also, how do you typically package your project? Please provide all steps necessary.
If you’re building from source, here is some [documentation][1] you can review.
Looking forward to hearing back from you, thanks!
Building Unreal Engine from Source | Unreal Engine 5.1 Documentation