Plenty. Early days, from a GM perspective my mindset was the risk of death had to be genuine and meant victories we're more to enjoy.
Over the years I've relaxed a lot away from that. Its not often nowadays that players die. I don't run published adventures, and don't always keep things within the appropriate difficulty range. However i will always give opportunities to withdraw or escape if its something a little too tough.
Some systems are a lot more flexible on what each party can handle but things like PF2E the math behind the system is strong and you can easily gauge what they can't handle.