That said I quit marijuana early this year. I think overall my anxiety has decreased. I believe I may have been masking emotional problems, and quitting marijuana made it easier for me to process them. However if someone is having nightmares, they may consider smoking indica before bed. It may always depend on the strain, but I believe indica is unlikely to trigger panic attacks.
I used to be a daily smoker, then something in my body just flipped. I have a couple friends where the same thing happened in their early 30s.
I've gotten bad anxiety from smoking too much in the past, but these are different. Full blown panic attacks with heart-attack-like symptoms and crushing fear. (My cardiologist checked me out, it really is just panic attacks).
It did used to be great at preventing nightmares for me (and it was fun). Sure, sleep quality was worse than ideal but I almost never had an ideal night of sleep. But now I've tried too many times to find "the secret" to stop me from having panic attacks, nothing works and it's just made me become anxious at the sight/smell of weed.