If you are in pain, some part of your mind does not like what you are writing or doing. Instead of suppressing it, you might try to ask it why it is not happy with what you are doing. Pain comes from inner conflict. Maybe that unconscious part of your mind sees something that you can't consciously see. Maybe it sees something that it doesn't like.