For more information, see The Science of Pain-Killers. The trick is to experiment cautiously over time, and only use them occasionally when the pain is worst and the need for sleep is greatest: they may genuinely help in that situation. Anti-depressants for insomnia are probably ineffective ...
I bought a foam wedge off of Amazon that goes under the pillow and wedges downwards towards my hips. It totally helped my shoulder pain and still lets me sleep on my side. It takes the pressure off the shoulders. Just want to mention this to you in case you are still looking for a ...
Both compounds are alleged to be pain killers. It’s probably their main medicinal use (either that or as a sleep aid). For more detailed information, see: Marijuana for Pain. But I will cover cannabis for anxiety specifically quite thoroughly here....