The best thing I can say to anyone who self harms is to get support and help. Suffering alone is the hardest thing and no-one deserves to have to live with it.
With a good support like therapy and counselling, it can be overcome and you can learn more 'healthy' ways of coping.
It is the hardest thing to admit to someone. Speaking to your doc about it and asking for some help is the best start.
Jim