I think longevity in EM and many field has 1 big Factor. A supporting spouse.
Most have kids and having a spouse that can deal with the household with a smile while you are doing crazy hours, weekend hours, holiday hours is very helpful. Said spouse has to be able to juggle the family, change plans quickly, be ready to deal with all of the kids/activities during times when most have their spouse to help. This relieves alot of stress from said doctor and I will tell you it helps me out alot.
If you have a spouse that complains all of the time b/c they have to deal with the kids by themselves, then it wears on you.
Make your Job the priority in the household and have that ingrained. So when you are coming home from a night shift, they all know that sleep is a priority and spouse has to take care of the family. When you are working a holiday, spouse knows that she has to take the kids to both sides of the family by herself with a smile.