My mental health has been damaged. I don't want to quit my PhD but I don't know how to continue? I have been in the lab for more than a year and my mental health has been damaged seriously due to the harassment of my PI, and I believe my PI has breached my confidentiality by sharing information I told in confidence with other group members and the administration.

I have thought about going elsewhere to continue my PhD. However, I realized my academic progress has been delayed due to the mental health problem and I would need time to recover. I am afraid of jumping into another lab. Also, I do not find any other professors in my department whose research interests me, perhaps because  my mind is currently occupied with all the negative experience with my PI and that clouds my thinking?

I want to change university and start totally fresh but obviously I would not get a good LOR from my PI.

I want a career in academia but I really need sometimes to recover. How should I proceed?



(Edit: adding update posted as answer) Thank you very much for all the suggestions. I avoid talking all the problems with my family since they are not in academia and I do not want them to worry about me. Writing all my thoughts here helps me to release everything I've tried to keep inside myself. I think my mental health seems to not as serious as I thought because after reading all the comment, I feel more positively now.
If your mental health is suffering, then the first thing you need is to seek professional counseling for that. 

Once you feel you are in a space where you can make decisions clearly, you need to get out of your current situation in the least harmful manner possible—whatever you perceive that to be. If it means leaving with a master's, great. If you have to walk away, then you need to do that instead. No outcome is worth risking your long-term mental health. 

Moreover, the fact that your advisor aired the dirty laundry in public is a serious violation of trust, and a clear sign that you can't really repair this relationship. You may be able to make something happen with the help of the human resources department or university ombudsman (or similar resources).