s3: throw deterministic exceptions before sending the specified chunk