On closer inspection, 7-Zip and gunzip found a CRC error in the compressed backup, which was probably caused by a faulty thumb drive. Gramps did not mention that however.
Which brings me to a follow-up question. Shouldn’t Gramps show that CRC error instead of failing on a malformed piece of XML? I ask that, because a small corruption can slip through when it doesn’t mess up the XML.