You sound very scared and confused.
I can hear in your question that you are concerned about engaging in behaviors that are harmful. This often comes from a past where a person was placed into situations where the coping abilities that they did have were inadequate to the situation(s). These events often occur in childhood or in young teen years.
I see that you have been to a number of therapists and routes, including ECT, hospitalization and so on. You must feel quite discouraged, perhaps more at this point.
Know this: You have free choice and can cope in ways that are not self destructive.There is no magic to it, no quick answers. It took you awhile to get to the place you are now and it will take some time to back out of it. During the process you may feel odd, unusual, or even filled with anxiety. You will need the support of a therapist, clergy or similar mentor in your recovery.
I would highly suggest exploring support options, especially a combination of one on one counseling and groups.
I know this situation feels overwhelming now, but you do have choice and can make changes; healthy ones...Remember: Feeling that you cannot cope is never the same as being able to do so. In many cases feelings are deceptive and not totally accurate.
Take and make some solid plans to pursue healthy supports. Minimize your feelings for now and take small behavioral steps toward your goals.