Have you tried Valerian root, Passionflower or Melatonin?
Cannabis can be quite toxic due to the pesticides that are typically sprayed on it. This would definitely add to your overall toxic load and stress your adrenals further. Those toxic chemicals can also cause Depression and suicidal thoughts.
What you are experiencing could in fact be withdrawls from the cannabis. I personally went through similar reactions years ago when I quit the stuff after smoking for years.
Sometimes a hot bath to loosen the muscles and a cup of chamomille tea can help too. It's also a good idea to turn off all electronics at least an hour before you go to bed and relax in your bed with a real book (not a kindle or an ipad).
Unfortunately AF involves quite a bit of mind over matter. Hope this helps you feel better