Managing physical pain

Managing physical pain by using Behavioral techniques that may include CBT and ACT can help in coping with it better.
It certainly is very important to have the pain evaluated by a medical doctor. Managing it on a psychological basis can both involve dealing with the thoughts that come with pain as well as the acceptance of the pain sensations.
Thoughts like this is going to last forever or I will be miserable forever are actually not helpful to get hooked to although your mind produces them. It is important to realize that not everything the mind tells you is helpful. If you buy into the thoughts that are previously listed then you will feel terrible. If you learn to change your relationship to these thoughts you may not like the sensations of pain you feel but you may not feel so hopeless and helpless.