Welcome to HW, I hope we can help you out here. The THC in that drug has been known to cause psychosis in some people, so it may well have triggered your first attack.
Panic attacks are usually something we are genetically pre-disposed to have, so the drug may have been what started it for you. Have you stopped smoking now? Are you seeking treatment for the panic attacks? There are some great treatments out there these days.
I hope the attacks ease, if you haven't seen a professional I really would recommend it. Panic attacks are not something you want to live with (I'm sure you agree!). Best of luck, let us know how you are going. Hang in there. Panic always passes.