This turned up in another post today - what’s in the first statements might help with your Endnotes problem?
https://forum.literatureandlatte.com/t/serious-compile-issues-tags-footnote-formatting-and-styles/122348/3?u=narrsd