You know, I don't remember much else about it, but I read something a while back where the main(?) character had a thing where they would, like, bite themself or something whenever they were hurt, because the pain of being bitten distracted them from the pain of whatever else had happened to them.
This is basically the same thing, isn't it?