Hi Tyler, sorry to hear you're having a rough go of it.
I don't know much about THC withdrawal, my DOC was booze. I did have insomnia for several weeks after quitting. Nothing seemed to help much. My sleep patterns gradually returned to normal eventually. Perhaps after awhile, you will start to get some relief.
I hope your new script works. Good that you're seeing your doctor.
Keep well, and hope you get some rest tonight.
Ron