Bug report of the first map

I used a two-handed sword in the lighted cave on the first map, and then I got stuck and couldn’t get out again. Does anyone know how to solve this?