When you go to the details page of your package, does it say anything in the build output? You can find it here if it's available:
I would suggest looking at your project's history and seeing what changes were committed before the build started to fail. I suspect there was an upgrade to either the version of Mendix used, or an app store module.
Is the application still building successfully locally in Studio Pro? You may find you have a more detailed error in your console when attempting to do this.
Good luck!
the probleem with compiling of Java actions.
Make sure that all java action in project not copied from another project.
Based on the logs above, the root cause is: "Java heap space".
it's the first time that I have seen this error. You can check out https://stackoverflow.com/questions/63088123/gradle-build-fails-with-out-of-memory-java-heap-space-error
Boils down to setting: org.gradle.jvmargs=-Xmx4g in gradle.properties file. However, this file is created on the fly I think by the Mendix build process. Not sure how you could influence it.
Is it possible this project has a lot java files to be compiled? These can be java actions directly inside of your app and java actions provided by imported modules.