title: overflow error when reading file from external drive
body: <p>I'm seeing an Overflow Error when trying to read a binary stream from an external SSD:</p>
  <pre><code>with open(self.path, &quot;rb&quot;) as input_file:
    input_file.seek(offset)
    data = input_file.read(chunk_bytes)
  </code></pre>
  <p>the <code>read</code> method call sporadically results in the following exception:</p>
  <pre><code>OSError: [Errno 34] Result too large
  </code></pre>
  <p>The error is supposed to signify the number being too large, but <code>chunk_bytes</code> is only 8 MB, so I can't see how that can be the issue.</p>
  <p>A couple of things to note:</p>
  <ol>
  <li>if I copy the contents from the external drive onto my local drive, I never run into this error</li>
  <li>when reading from external drive, this error happens sometimes but not others, it's indeterministic</li>
  </ol>
  <p>What could be causing the issue?</p>
  <p>Edit: I'm using Mac OS Monterey, the SSD is formatted with HFS+</p>