How do y’all SAHMs keep yourselves sane?

So I’m about to lose my job this week... I got a job for the sole reason that I can’t be a stay at home mom . I still struggle with ppd and I’m so scared to be a stay at home mom again because I get frustrated with my son and have thoughts that I don’t like and that are scary when he won’t stop crying... I have a history of being in mental hospitals and I feel like if I’m a stay at home mom again I’m gonna end up back in one ... how do y’all do it

I’m losing my job because I already got a bus ticket to see my sons dad since my shifts were covered but now one of my shifts can’t be covered and I can’t get a refund on the ticket.