We don't know what level he was at the time but we know he couldn't cast Heal ( level 6 spell ) and he can cast Break Enchantment ( level 5 spell ) so he's level 9 or 10.

Could he somehow escape the cave with his spell selection and some ingenuity?