Hi,
Welcome to the forum. I am really glad to help you out. Self harm or self injury can occur in a number of conditions but depression is the commonest cause of the same. You should urgently consult a psychiatrist and seek an opinion.
You definitely need anti-depressants and possibly cognitive behavior therapy with the help of a clinical psychologist. I sincerely hope that helps. Take care.