There's no way that I know of to avoid pain absolutely, but suffering is the interpretation we choose to place on the pain we encounter.
Since I was the stupidest kid in my class, it never occurred to me to try and be perfect, so I've always been happy as a writer just to entertain myself. That's an easier place to start.