Psychedelic drugs provide an experience of absorption like a trance. When one is absorbed in such a state, it's the first direct experience of a sense of self that is immaterial (but finite). Buddhist meditation (samadhi or "right concentration" in the Noble Eightfold Path) goes very far beyond that and into very different states of consciousness.
Gil Fronsdal is a Stanford Ph.D who teaches clearly, logically, and in stepwise progression. You can learn here:
http://www.audiodharma.org/talks-intromed.html
If you're interested in empirical studies of samadhi, Dr. James Austin published a book called "Zen and the Brain: Toward an Understanding of Meditation and Consciousness" from MIT press.
I hope this helps alleviate your panic and brings you clarity and harmony of mind.
I've often made this analogy. Meditation is like riding your bike into the woods. When you start out, you're not in shape so you don't get very far, but you don't end up farther in than you can handle. Psychedelics are like hitchhiking: you get a lot farther, don't always know where the fuck you are, and can usually get back safely (but not always).