Once you start introducing auxiliary things like pain, the AI may begin to act in a self-preserving and protecting manner. This is a very dangerous road.
People will survive an enormous amount of physical pain, but they tend to kill themselves over mental pain.