Fix a bug discovered by inspection:

If we fail to allocate storage, try a smaller chunk, not a larger one.