HPCC-11473 - Improved exhausted memory exception

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>