Exporting certain Confluence content can lead to a Table of content that references incorrect page numbers or page numbers that do not exist. This seems to mostly be caused when the Confluence content contains tables.
Steps to reproduce:
Import space and template linked in internal ticket
Export with Scroll Word Exporter
Last entry in Table of contents references page 6
Last entry in Table of contents references page 7, even though the document only has 6 pages
In the exported document right click the table of contents and select "Update Field" to update the page number references, which should correct the page numbers.