If they're planning to leave, I felt that they should consider walking away from the things causing them pain. You can make a living being a surf lifesaver or a forest warden or collecting unemployment. If they're planning to leave, and, as I would speculate, they've tried nothing, maybe you can get them to try some stuff if they can lean on you as a fallback? You may as well quit your work and skydive or hike or travel or do whatever if you're going to end it, and some people have life changing experiences doing those things?
Cognitive behavior therapy is apparently surprisingly effective to engage with people who are interested in changing and recognize there is a problem.
If things are looking desperate maybe something insane and mind altering like microdosing ketamine or LSD or something, as these actually do change people a bit. If there's nothing to be lost, I'd try it.
I don't have any answers or advice. Good luck.