Four years prior to a major mental breakdown, I begin experiencing more anxiety/unhappiness/sleeplessness/etc than normal. There was stress at home and work. Additionally, I hadn't examined what part of that anxiety/etc was my own projection/discomfort verses where I needed to establish good boundaries or leave some of the things that were just not good for me. I went to a psychiatrist for the first time four years prior to my major breakdown. The medication did ease some of the symptoms but because I did not have good insight into what was going on (a good therapist can help as well as viewing posts, articles and videos), when I discontinued my medication due to unemployment, I had a major breakdown that nearly killed me. These small mental breakdowns are an indication that you need to assess what is going wrong. It sounds like your crisis is not just a little one because it has affected your ability to work and feel happy and connected. Hopefully, there are some good resources in you community that can help you. Good luck with this.