Perhaps 24GB of memory should be enough to compile your ARM GraalVM binary? https://developer.oracle.com/arm/