calibre does not generate <base> elements. How are you converting the doc to epub? The recommended way is to save it as docx and convert that.
https://manual.calibre-ebook.com/con...word-documents
IN any case, all you need to do is find the <base> tag in the html and delete it.