I gave it a try and these were the results I was given:
C:\Users\Blaze>java -XX:+PrintFlagsFinal -version | findstr HeapSize
Picked up _JAVA_OPTIONS: -Xmx128M
size_t ErgoHeapSizeLimit = 0
{product} {default}
size_t HeapSizePerGCThread = 43620760
{product} {default}
size_t InitialHeapSize = 134217728
{product} {ergonomic}
size_t LargePageHeapSizeThreshold = 134217728
{product} {default}
size_t MaxHeapSize = 134217728
{product} {command line}
size_t MinHeapSize = 8388608
{product} {ergonomic}
uintx NonNMethodCodeHeapSize = 5839372
{pd product} {ergonomic}
uintx NonProfiledCodeHeapSize = 122909434
{pd product} {ergonomic}
uintx ProfiledCodeHeapSize = 122909434
{pd product} {ergonomic}
size_t SoftMaxHeapSize = 134217728
{manageable} {ergonomic}
java version "14" 2020-03-17
Java(TM) SE Runtime Environment (build 14+36-1461)
Java HotSpot(TM) 64-Bit Server VM (build 14+36-1461, mixed mode, sharing)
Looking in my laptop info it says I have 12GB of installed memory (RAM). Assuming I have done it right, my max heap size is only 134,217,728 which doesn't look to be that high at all when compared to yours so that might be the problem.