Aspose.Words throws 'Infinite loop' exception while saving a document as html

Dear Aspose Team,

We are facing an issue while trying to save a docx file as html. We have tried with the Aspose.Words version 22.12. We try to save the file with the following options:

Aspose.Words.Saving.HtmlSaveOptions options = new Aspose.Words.Saving.HtmlSaveOptions(Aspose.Words.SaveFormat.Html)
{
    ImagesFolder = saveFolderPath + @"\" + fileName + "_files",
    ImagesFolderAlias = fileName + "_files",
    ExportHeadersFootersMode = Aspose.Words.Saving.ExportHeadersFootersMode.FirstSectionHeaderLastSectionFooter
};

Aspose.Words.Document doc = new Aspose.Words.Document(filePath);
doc.Save(outputFilePath, options);

Here are the files to reproduce the issue => ImpExpData.zip (619.9 KB)

There are two .docx files (one we made smaller, the other is the original which lead to this issue) and a screenshot from the exception.

Please let us know if you can fix this issue.
We are waiting for your findings/answer.

Kind regards,
Bordi Tamas
[BUG-11309]

@tbordi Thank you for reporting the problem to us. But unfortunately, I cannot reproduce it on my side. I have used the following code for testing:

string fileName = "out.html";
string saveFolderPath = @"C:\Temp";

Aspose.Words.Saving.HtmlSaveOptions options = new Aspose.Words.Saving.HtmlSaveOptions(Aspose.Words.SaveFormat.Html)
{
    ImagesFolder = saveFolderPath + @"\" + fileName + "_files",
    ImagesFolderAlias = fileName + "_files",
    ExportHeadersFootersMode = Aspose.Words.Saving.ExportHeadersFootersMode.FirstSectionHeaderLastSectionFooter
};

Document doc = new Document(@"C:\Temp\TestFileBig.docx");
doc.Save(Path.Combine(saveFolderPath, fileName), options);

Could you please create a simple console application that will allow us to reproduce the problem and provide information about the environment where the problem is reproducible?