Catch too large memory allocations that cause size_t to wrap