Supplementary ticket for WT-11062. This adds a mitigations for WT-11062 and a new diagnostic check that will catch it in a more general case, not just when mempcy fails.