All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad is His slave and Messenger.
First of all, we ask Allaah to cure you from all these kinds of diseases.
As regards whether or not a person in your situation is exempted from the Friday prayer and the congregational prayer, then the answer is no. Since you are able to write such a question, then you are conscious –Allaah willing. Not every mental disease renders a person exempted from religious obligations as we clarified in Fatwa 88725.
Hence, we advise you to perform Ruqyah and recite the daily legislated mention of Allaah that is reported in the Sunnah, as well as observing the religious obligations like the five daily prayers, being kind and dutiful to the parents and keeping ties with kinship. If you do so, you will be cured, Allaah willing.
For more benefit, please refer to Fatwa 82355.
Allaah Knows best.