Internships are mostly for gathering work experience and recommendations so you can get your first "real" job.
It's a huge plus if you love the internship and learn a lot. But, the real point is just showing up on time, working hard, finishing your tasks on deadline, showing you can work well in a team, and getting the recs/references to show it. It's almost better if your internship isn't perfect, because you can show you can focus on finishing projects and the company's goals even when they don't totally float your boat.
Leaving a job after just a few months isn't necessarily the worst black mark on your resume (sometimes things just don't fit), but leaving an internship early would be a pretty big red flag if I were the hiring manager. To me, that suggests you can't handle adversity or work with others, or hold some ubernerdy principle (they say they're doing AOP but they aren't really doing AOP!) above actual business goals like shipping product. Honestly, only something totally out of bounds really explains leaving a <6-month internship early, like a personal/family emergency or your boss sexually harassing you. Chances are that every place you work will do zillions of things wrong (even places like Google aren't all they're cracked up to be), it's important to think positive and focus on achieving goals.
The great thing about an internship is it does end after a few months, even if the experience totally sucks, you can make the most of it and know you'll be outta there soon enough and part on good terms. And I wouldn't worry about having your neural pathways somehow tainted by bad methodologies, if you've got a critical mind you'll recognize things like that and move on. There's always something to learn, even if it's just a bunch of counter-examples of bad practice you can use in your next job to argue your way out of doing something stupid again.
Get the best internship your qualifications/connections can get you and move up from there.