Many people suffer their first anxiety attacks while stoned. Since most LSD isn't pure and is usually mixed with speed, it's hard to come down off it, and since pot has gotten so strong by breeding it's also harder to come down from. So the first good thing you did was to stop taking drugs. Now I'd consult a psychologist to help you overcome the pattern of thinking you're getting yourself into before it becomes chronic.
If you need any additional information you can ask