That is an error in the extended Kobo driver while modifying the epub to be a kepub. The author usually asks for problems to be posted on
https://github.com/jgoguen/calibre-kobo-driver. He'll probably need to see the file that is causing the problem.