Well, InDesign seems to cause a lot of problems.
That particular errors crops up occasionally in Sigil, and is generally (always?) fairly easily fixed in that software. Takes some learning, but easiest in the long term. You can get the latest version of Sigil at
https://github.com/Sigil-Ebook/Sigil/releases