Hi.
I cannot reproduce your error on the dolfinx v0.7.2 - v0.7.3 anaconda environments. Maybe you could try to update the dolfinx-conda environment or update the h5py package (and the corresponding dependencies). You could also use XDMFFile.write_checkpoint
(see https://fenicsproject.discourse.group/t/read-mesh-from-xdmf-file-write-checkpoint/3458/3)
Cheers.