Recovery is difficult, but you are making progress. The fact of having gone months without self harming is proof you can do it again, and is cause for pride in itself.
I know how hard it can be to accept failure, but the fact is that you are in a different time and place, and that you have grown in the time between. You are a different person, one who is able to handle those emotions- by self harming when absolutely necessary, and less and less frequently. Nobody can avoid mistakes. As long as the general trend is an improvement, you’re achieving your goals!
The progress you are making is commendable, and measurable. Time changes us, it always does, and we can only do our best. I’m proud of you, and I hope you can be too.