We have logged this issue in our bug tracking system with ID WORDSNET-20752. You will be notified here as soon as it will get resolved in future. Sorry for the inconvenience.
It is to update you that we have fixed the problem of ‘infinite loop’ and the fix will be integrated in next 20.12 version of Aspose.Words. However, after fixing this issue, we have observed that the layout in final output is wrong. To fix the layout problem, we have logged a separate issue with ID WORDSNET-21459. We will inform you as soon as this issue will get resolved in future. We apologize for any inconvenience.