I've never been a nail-biter, but have my own compulsive bad habits and completely get how hard it can be to break yourself from it.
Often, once a habit becomes compulsive you don't even realize you're doing it until you've gone so far that it starts to hurt or bleed.
While many of these habits may be distressing or unsightly, they don't usually require a trip to the hospital.