I have been seeing this issue for years and recently I finally figured it out: https://github.com/openzfs/zfs/issues/18893
Before this bug is fixed do not use recordsize that is >= 256k.
Before this bug is fixed do not use recordsize that is >= 256k.