Is it possibly related to the zlib library being used on Debian/Ubuntu? That you've got even one reproducer with the exact same hash for the transient error case means it's not hardware or random error; let alone two independent reproducers.
And then what happens if you do the exact same test but change to zstd or lzo? No error? Strictly zlib? -- Chris Murphy