The size of heap_4 is configured using a compile time macro configTOTAL_HEAP_SIZE. You need to ensure that it is set correctly to the size of free RAM available.
Heap_5 allows you set the size of memory region to be used as heap using vPortDefineHeapRegions.
Thanks.