Database disk image is malformed

And a good question. This should not happen, but it is not something that Duplicati can control. It happens somewhere inside the SQLite library.