LibreOffice added thousands of pages between endnotes on a document I've been working on.

Doc includes a table of contents and footnotes and endnotes. Only endnotes seem to be effected. Around a thousand pages between each endnote and I don’t remember doing anything technical to get to this point. Can anyone help?

I tried turning off page breaks with no help.