I have seen in release notes that WORD.net-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…...upgrade to the latest version, 25.4, to avoid potential issues ...However, upgrading to version 25.4 is advised to ensure stability...