Doubts

Q: I have psychosis and split personality disorder, and ocd. I was repeatedly saying things to back bite people and to to leave Islam and if I was concentrating on stopping I would be able to stop. Some times I would put my attentive on something else and then I would continue saying things that would back bite or leave Islam. Would the backbiting count and did I leave Islam?