I agree with Lemongrass00. It is in any case a complex topic, but I want to leave a few of my cents for whatever they may be worth.
We know there's three critical factors in psychedelic experiences - dose, set and setting. How much you take (and of course, of what), your own state when taking, and context (place, time, company and so on). Taking good care of each one of these factors will improve the chance of a good outcome, but a good outcome does not necessarily imply a pleasant experience - and it seldom will be what you wanted or expected.
It's worth questioning what a "bad trip" is. When using psychedelics, folks wish for a "good" experience; enjoyable, healing, insightful, and hopefully easy. But challenging experiences, "bad" experiences, will often facilitate very positive outcomes (conversely, apparently blissful experiences might deceive you and put your ego in big trouble). The key here is understanding that the acute part of the experience, the trip itself, is part of a larger process you're in that includes the before and the after, preparation and integration. If you are not in a good place, if you're tired, confused, scared or clutching expectations, it can be quite difficult to get a positive outcome. And adding magic to the mix may make it a dangerous shot in the dark.
TLDR would be - work in yourself, read about the topic, work in magical skills (principally meditation) and when you find yourself centered, reasonably lucid and strong, reconsider. It might happen that once you feel you are in a good, balanced state you are not that interested in taking a strong psychedelic (or that your reasons have changed) but that would be another story.