A: Haamidaw wa Musalliyaa
With regards to utilizing something that is Haram for medicinal purposes, the general principle is that if a pious experienced Muslim physician advises that there is no other alternative substance which will have the same effect to cure a certain sickness and prescribes a certain substance which is prohibited in Sharia on the basis of necessity then utilizing such a prohibited substance in accordance to the necessity will be acceptable.
As a suggestion you may also endeavor to try some form of alternate medicine such as homeopathic medicine or the medicine of the Hakims that generally practice in the sub-continent.
May Allah ease your difficulty and grant you complete shifa from all ailments. Ameen.
And Allah Ta'ala Knows Best
Shafiq Jakhura (Mufti)