Error while installing offline Elasticsearch 7.12

this is defiantly java setting problem.

check this setting in jvm.options

JVM temporary directory

-Djava.io.tmpdir=${ES_TMPDIR}

you also need to enable this as you are using java16
14-:-XX:+UseG1GC
14-:-XX:G1ReservePercent=25
14-:-XX:InitiatingHeapOccupancyPercent=30

it clearly says it can't create jva virtual machine.
may be try full path for logs/gc.log