Well, technically you are injuring yourself. Of course, some scratches are worse than others. It certainly isn't a healthy thing to do to yourself.
Are you in therapy for this issue or for something like borderline personality disorder, if it's related to a more comprehensive diagnosis? I definitely think you are prone to trying to injure yourself, whether it's helping or not. And you need to seek help, so you can be nicer to yourself.