I've once made a disk image backup of the running system (and it warn that it might be a good idea) and then wiped the laptop clean and installed a new macOS. The disk image (predictably) failed to mount and there wasn't much I could do to fix it.
Since then I also read dmg as damage :)