It was the biggest power of two that didn't throw the error. In other
words, it was fairly arbitrary, but works.

Not 100% sure it's related, but I got the same error number (22) when
trying to read the whole file, just like they got when trying to write the
whole file.