Have you heard to DBT? Dialectal behavior therapy. I've heard it helps a lot with thoughts and urges of this types. If you are really struggling with this would being in the hospital really be such a bad thing? If they are wanting to section you maybe it would be better to go in voluntary that way you have more control over your treatments.
Whatever happens