Moodle doesn't provide complete support for SCORM 2004 - see here for more details:
https://danmarsden.com/blog/2013/05/06/stopping-work-on-scorm-2004/
in Moodle SCORM 2004 code cmi.launch_data is initialized when entering the SCORM with the data from cmi.exit (instead of dataFromLMS) - I'm not sure if that is a bug or correct 2004 behaviour and something else is causing your package to fail.
If you have funding available to help pay for someone's time to diagnose this further feel free to get in touch, otherwise you need to stick to using SCORM 1.2 packages.