Next time, only take one or two hits to see how you react. Smoking a whole joint's worth of high quality stuff can certainly bring on anxiety and panic attacks, especially if you're not used to that much. Just go easy and you'll enjoy it.