Players need to have the fear of death, but it actually be fairly unlikely. Most campaigns of mine will have at least one PC permadeath. Tomb of Annihilation had 7, but they were warned that it would be a meatgrinder.
No deaths and the players get too lazy. Too many deaths and they get too...