If you run out of health entirely, you’ll see a “Game Over” screen and continue from your last save. Fortunately, TotK autosaves a lot, so you’ll usually spawn quite close to where you died and won’t lose too much progress. However, it’s worth noting that if you die in a shrine, you’ll respawn right back at the start.