Elasticsearch Pods are not coming up - free(): invalid pointer

Hi Team,
We are facing an issue while creating the Elasticsearch cluster, pods are not coming up and when I see the logs below is the error.

warning: ignoring JAVA_OPTS= -XX:MaxRAMPercentage=70.0; pass JVM parameters via ES_JAVA_OPTS
warning: ignoring JAVA_OPTS= -XX:MaxRAMPercentage=70.0; pass JVM parameters via ES_JAVA_OPTS
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
free(): invalid pointer

It fails with the above error and pods goes in to the CrashLoopBackOff state, sometimes it creates few pods and fails to create few other in the same cluster. Same image is working in other environment.

Below is the resource and limit for master pods and data pods we have 8Gi memory and cpu is 2.

          resources:
            requests:
              memory: 4Gi
              cpu: 1
            limits:
              memory: 4Gi
              cpu: 1

Can anyone please help what is going wrong ?

Thanks.