I got this error after the wizard resurrected the king and Dalion says "Well, sucks to me I guess." When I load my autosave, Dalion says the line and the same error happens again.
Oh. It's probably a bug from attacking the king with an object that's not the sword - since after the cutscene you change map file. I didn't really consider that, thanks for reporting!