Although I have had bad experiences with a PI (labmates were always cool), it is not so much the politics that bothered me. Usually, it is the projects that gave me a bad time, and learning to deal with repeated negative results was a challenge, despite every honest attempt at being clever. Sometimes, I also didn't have any money/budget for the projects or any previous expertise from the group/PI to rely on.
Research is a difficult job and can often be isolating (especially in the physical sciences). I always struggled to make a routine, because every aspect of the project was a little different. Was always struggling and trying to learn new things to add to the project. I think success also depends on your skills in the machine shop and with plumbing - at least when you do hands-on work. Regardless, I was not very good at this, and unsuccessful mostly.
Looking back, I think you have to accept your fate (including your failures) and come to terms with whatever happens. Not everyone makes a good research scientist.
Oh, I should also add that there are poorly managed lab groups, and well managed ones. Some of the productive labs offer excellent training opportunities for trainees, whereas in others, you are kind of thrown into a pool of sharks and told to learn how to swim.
If you end up in a lab group where you don't fit, I suggest you go find another, or consider trying a different line of work. There is a lot of hit or miss in research, and since the financial rewards are not really there, I wouldn't recommend working for several years in a miserable work environment. If you aren't learning and if you aren't working on something meaningful, then why are you working in research? (Because you're a premed? OK)