core: better error when adding box with malformed version [GH-3332]