When respawning after death we should have a short moment of invincibility to prevent us from being attacked by agro mobs that sit right at the entrance.
I accidentally walked into an area that was far above my level and found a couple agro mobs sitting right at the entrance that killed me in one hit. As soon as I would respawn it would kill me again. This continued about 15 times until I was lucky enough able to escape the area.