Here’s an interesting perspective:
You never meet the wrong people. It’s always the right ones for you, to learn the lesson. It’s like the saying about problems following you when you avoid them. Problems cease to be problems when you find a solution, a tool for them. Check ‘The toolbelt principle’.