I would imagine that the percentage of people with diagnosed mental illness in the bdsm community would be same as in any other community or the population as a whole. The important thing is (as always) communication. It is important to educate your partner about the illenss and it's symptoms so they can be aware and help to recognize any red flags that may happen with you. It is good that you are seeking treatment and are on medication for the condition. Luckily mental illness does not carry the stigma that it did years ago and I think it is important not to let it define you as a person. If it is kept under control you can lead a normal happy life.
Good luck.