I guess it depends where you live and who your landlord is. It would also depend on the circumstances.
If you live in a country with a stronger emphasis on helping those with mental health, you have a greater chance of not being evicted.
If your landlord is nice or empathetic, you would have a greater chance to not be evicted.
If you are living with other people who may be disturbed by your attempt such as kids, you might be evicted as to not cause any undue stress to them.
It depends on how much commotion it causes. If it's handled discreetly then the risk of being evicted goes down. If police and ambulance are involved and it is dragged on then of course the risk of eviction goes up.
Another thing to note is if you get hospitalized and are unable to pay rent you could very well get evicted too.
I'm not an expert by any means though so don't take my words to heart. This is just some of my thoughts on the matter.