1) Pick the wrong mentor.
Quite simply, if a mentor hasn't graduated a student in the last three years, serious red flags should go up. Professors can get a ton of work done relying on research assistants and post-docs. But students need to be nurtured and many mentors just aren't up to the task. Their track record at graduating students is the best evidence you can ask for. Look for potential role models in that history.
If the mentor is a nontenured professor, ask for their advice but don't make them your lead mentor to sign off on your work. Tenure has many stresses and some are orthogonal to your interests as a student and future researcher. The nontenured need to be focused on themselves until they get tenure. They can have a lot of energy and novel thoughts, but since your results will be tied to their future prospects, your work will get undue pressure.
The edge case is the newly crowned associate professor. Fully interview the prospective mentor and get references. Your career will literally be in this person's hands. Make sure you know that this is a person who will challenge and inspire. Associate professors can be really, really great mentors, but you just have to be careful if they haven't graduated any students. If they have, and those students are already on tenure tracks, you likely have an excellent candidate.