Usually, when a conversion bogs, it is either insanely complex (for the target format) or has EPUB validation issues. (Just because you bought a book, does not mean the code is clean

. Calibre Editor routinely flags code errors. size with no units, arguments that are not permitted in EPUB (just because it can be used in a WEB page, does not make it valid in an e-book)