I don't grind my teeth, but one thing I do is that I hold my breath when I'm thinking or doing something irritating like reading bad docs. When I started programming two years ago, I thought that it would be impossible for me to continue because I was stuck too often and didn't breathe. It got a little better since then.