When we see the Veil kill the Doctor the first time, the Doctor falls to the ground, but then he explains that it takes a long time for Time Lords to die while he crawls back up to the machine. It takes him a day and a half to actually die — that's that entire sequence when we see him dragging himself up the stairs.