You don't deserve pain. No one does. Sorry, I'm a bit unclear whether someone has hurt you and you have gone on to self harm, or they have hurt you as punishment for you self harming? Either way- you don't deserve it.
I'm sorry you are suffering so much.