This is kind of grasping at straws, but are you sure you're looking at the right line? Sometimes the way epubcheck counts lines is different from the way the code is displayed in Sigil, for example. So, maybe the actual error is on some other line nearby?
Like I said, a wild guess...