I have seen in release notes that WORDSNET-27112 has been fixed.
I am using Aspose-words version 24.1 in JAVA and our customer has the same exception "Document.Compare: “Cannot insert a node of this type at this locatio…...WORDSNET-27112, mentioned in the release notes, is included in the Java version...