CLN/ER: add BadDataError internal exception