The problem is that the table of contents does not update automatically if the headers are moved to the new pages. The cross-references do update, so it seems to be achievable in principal. IMHO this feature is BADLY needed! Moreover, this would beat the MS Word, coz they have no auto-update too (I tested their OS X version). If the realtime auto-update is complicated, the auto-update by export to PDF would be also acceptable (like MS Word does). If these two things are not possible for some reason, at least PLEASE add the alert by exporting to PDF like "You've got table of contents, dude, check it twice before moving on!"
Thank you for reporting this issue. I'm closing this issue as it's already reported as #44448
*** This bug has been marked as a duplicate of bug 44448 ***