Reapplying for a PhD position at another institute after failing the qualifying exam
You can't let one setback keep you from pursuing your goals or dreams. Yes, it's bad that you failed your quals, but that doesn't mean you should just give up. Having supportive committee members will help a lot when applying to other schools or programs.