You are not a failure for self-harming, the fact that you posted here is progress in itself.
Do you know what triggered you to SI? Knowing our triggers, why we want to harm ourselves in the first place, is crucial to overcoming this negative behaviour.
Hang in there, one day at a time.