Some allocations might underallocate due to integer overflows. This commit ensures that we are throwing an exception if the allocation size does not fit in an unsigned int. Fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=25341