Whatever pain you are in, remember this right away: pain is not shameful. It cannot damage the part of you that makes decisions and rules over everything else. Pain cannot change or corrupt your mind, either in what it is or in its purpose to serve the common good. In most pain, you can also find help in this thought from Epicurus: pain is 'neither unbearable nor eternal' — as long as you stay within the bounds of reason and do not give in to wild thoughts.
What pain soever thou art in, let this presently come to thy mind, that it is not a thing whereof thou needest to be ashamed, neither is it a thing whereby thy understanding, that hath the government of all, can be made worse. For neither in regard of the substance of it, nor in regard of the end of it (which is, to intend the common good) can it alter and corrupt it. This also of Epicurus mayst thou in most pains find some help of, that it is 'neither intolerable, nor eternal;' so thou keep thyself to the true bounds and limits of reason and give not way to opinion.