This module will teleport the player to the start of the dungeon on death.
Just clone the module into your modules directory for your server, re-run cmake and compile.
Then enable the module in the module config.
If you need any help you can join my Discord Server.
Thanks to Артём Борисов_99 from the AzerothCore Discord for the module suggestion.