You could lower the difficulty if it's not already on the lowest setting, see if the shop has any stocked potions, if so, buy them. If you don't have enough money, sell materials above all else because once you get to a certain part in the game, they are easy to find.
What skills do you have? And what are your stats? The reason I ask is because if you are a Ranger, you can do this easily. If you are a Mage, you still have a decent chance. If you are a Warrior...a lot of dodging will need to be involved and you will most likely die. But using CC and AoE skills while waiting for your mana to replenish while dodging could get you out alive.
I actually plan on attempting a play through with the lowest possible level and beating the game, which should be interesting. This is the only time I have ever come across anyone in this situation and now I'm interested in trying it myself, granted I would be a lower level than even you though... But, hypothetically, the situations I am thinking of SHOULD work for you.
EDIT: Nvm then, you can get out normally...