((((((((((BabyG)))))))))))))
I found this website that might help.
Trichotillomania - Compulsive Hair Pulling
I sometimes have a problem with it, but I know that other members here struggle with it... I hope that they come across this post.
It could be another form of SI since you use it as a form of "self-calming" which is what SI is all about. It's trying to take the minds attention away from (emotional) pain, and instead focus on (physical) pain.
Hope that helps.