Hello,
The problem comes from MS Word that is unable to know that the third page has a content in it when there's a table from the previous page with the Allow row page break option value as true and the numbering is set as restart (setting it as continue works fine). If you open the DOCX output and do some line breaks (or add a hide content) it updates the numbering correctly (LibreOffice handles this special situation fine without doing changes).
Regards.