Fail when a vec::reserve is too large

This should never cause a segfault, but rather fail somehow. Possibly a condition could be used here, but for now there's not much else to do.