My suggestion to handle pain would be to start thinking and perceiving pain as a path to improvement and growth. This is something that takes time and suffering but will make you much, much, more resistant to pain on the long term.
If you’re curious about this check out the works of Dan Ariely (mainly on the upside of irrationality).