The above code works for me, but for the rest you're probably very right.
My girlfriend is driving herself nuts, and by proxy now me too.
She started a new job in January. Last month, a job advert for a very suitable PhD position got forwarded to her, and she liked the project, so she still applied. She's not really looking for other jobs, but this looked apparently really good.
She had already updated her CV, and put down her current boss (the one since January) as reference.
He gave a bad reference, and therefore she didn't get the job (this was mentioned as the reason).
Which is not very professional from him, but understandable (also given that one of the bigger competitors in the area seems to be actively hiring people away from them, and they have problems getting more).
If it was me, I'd now put this down as moronic mistake from my side, and would swallow it. She can't.
In the first meeting they had afterwards she started crying in the end (yeah...), but didn't tell him why.
He seems to be now genuinely concerned (and he's also very happy with her work), and asked her to talk to HR, and if necessary the company doctor.
She talked to HR, and told her about other things (e.g. her dad, who has advanced Alzheimers, recently stabbed himself), which they fully understood .
So... there's actually no real problem here from anyone higher up, but she's stressed as hell. (not that I understand why...)
A part might be that the workload is high, because they actually wanted to have 2 people, but couldn't get more, due to mentioned problems. (she actually also got a job offer from the competitor, shortly after starting at the company, so... they're on the hunt, as it seems). And she's a bit of a perfectionist, so she's actually trying to do the job of 2 people, which can't work.
She's also a person where the word of a supervisor has a lot of weight (might be a cultural thing, a greek friend of mine behaves similar), so she really get's stressed out if she thinks he could be unhappy (which he isn't at all, as it seems, but not that this helps, *sigh*).
She started crying a lot when she recently had to postpone a meeting with her supervisor for 3 days (that was before, so unrelated). A meeting, on which nothing external is dependent on, just to check how her progress is in the new job. And she postponed it, because she thought she'd need to read 10.000 more papers for her presentation.
I'd have loved to say something like "You're totally ridiculous right now", but I guess that wouldn't have been beneficial for my relationship

.
I wished she'd just cool down, but I'm not sure if she's familiar with that concept

*sigh*.