TypedArray.prototype.set(…) throws a RangeError when track.pos + value.length is greater than track.len, which happens when the data is further compressed in transit (which causes Content‑Length to be smaller than the actual size).
A better option would be to rely on the Response.prototype.bytes() method or the Response.prototype.arrayBuffer() method when the former is unavailable, as those handle that case correctly.