I know a guy who was training to be captain but going through divorce so told his doctor he needed time off work, a week or two of holiday. Doctor said that’s fine, you are a bit stressed out, take some time off. When he came back he was mysteriously removed from his training and career set back massively, had to find a new job. There are so many pressures and restrictions on pilots that their mental health suffers a lot.