If you have a lot of gold on you, you will drop some when you die. I suggest making a gold storage noob to hold the excess gold.
Secondly wait until all your timers run out before entering the quest again. Meaning let's say you die with 3 minutes to go, so you re-enter. The old timer is still running and the new timer also starts. When the old timer runs out of time and you're still fighting the boss, you will be kicked out. Then if you re-enter again right away, you start a another new timer and the second timer hasn't finished yet. Hence you create a cycle of the old timer running out and the new timer resetting.
Make sure you only have one timer running at a time when fighting.