I was about to merge 2 duplicated items in Wikidata, but I accidentally merged the wrong one (Q9143779 and Q4702008). I have undone the merge on Q4702008, however when I clicked undo on the changes on Q9143779, I got the error
Internal error [WbugggpAMEwAAFUt4DkAAAAQ] 2017-09-15 09:42:26: Fatal exception of type "Diff\Patcher\PatcherException"
And when I clicked restore on the last good revision, I got
Undo failed Invalid content data Return to Wikidata:Main Page.