In my experience with this issue, there have been a few ways I have found to fix it.
The first thing I would try would be to delete the “Saved”, “Binaries”, “Build”, “DerivedDataCache” and “Intermediate” folders and then reopening the project and attempting to package your game again.
I have a few other strategies to fix this, but try my first solution and if the problem persists you should send the packaging log here and ill help you out further.