Hi Pinozwam,
Try deleting the Intermediate folder in your project. Also, you may need to restart PC after deleting the Intermediate folder. (I’ve seen gradle helper programs running in background after attempts to package.)
Also, a google search for “Unreal Engine java.lang.OutOfMemoryError” shows that your obb file might be larger than 2GB?
Hope that helps