How to handle a PI who constantly threatens to kick me out of their lab? I am a first-year PhD student in Biology and I am currently working in a lab for a very hard-to-please PI (a new PI who started a couple years ago and only just recruited her first few graduate students). I am very interested and excited about this line of research and I really want to do what I am doing. But my PI's way of managing people makes everyone miserable and I am not sure what to do.

Background: Last fall, I rotated in a lab which I really enjoyed working in and generated some great data, but had to leave, along with the other rotation student, because PI had no funding. In the spring, I rotated with a brand new PI, whose lab I helped set up and started on a project, but did not stay in his lab because his management was very poor - was never around, didn't know or care what was going on with projects, etc, and I was also advised to join a different lab by the academic coordinator who said they thought this PI was not "ready" to handle a graduate student. So then, I started a THIRD rotation in another "new" PI's lab and have been here for three months. 

This person's research is really great, but their management seems to focus heavily on threatening language and negative reinforcement. They often send very angry emails to the lab. When this person is feeling "iffy" about you because you didn't get fantastic results or you responded to an email too slowly, they will tell you to your face that you are not worth their time to mentor if you don't "try harder." I recently gave PI a sequence alignment, but accidentally gave them the wrong version of the sequence, and as a result, they said they would not be willing to fund me as an RA. PI actually made the same mistake when they did the sequence comparison (which is OKAY! It is an easy mistake to make!), but they were just so harsh on me for the mistake. All their communication with me makes me feel that, despite my good merits, progress or improvements, they disapprove of me or are angry with me. They deal with my labmates in the same way and my labmates have often expressed their worries and stresses to me over this. I should note that some of my labmates are well-accomplished, highly dedicated post-doctoral researchers who devote ALL of their time and efforts to their work. The dynamic in the lab overall is not very good, in part because people feel increased anxiety from the PI's anger or lack of professionalism in expressing themself. It is really a huge distraction from my work whenever PI is talking about kicking me out of the lab. I go from focused on an experiment to panicking about what to do or who I should talk to. 

I still respect this person as a scientist, but I feel at times that this harsh style of management/dealing with people is too much for me. I am not perfect, but I am trying very hard and have made so much progress on my work, I just wish PI would recognize this. Almost in my second year of graduate school, and with the school potentially not able to support me with a TA in the future, and with me working in my third lab, I am extremely stressed out by this situation. I feel that, if I do not make it work in this miserable lab, I will be kicked out of the school and then lose my chance to earn a PhD.

What is a good way to deal with this type of advisor and how to keep clam and focused in the lab with this kind of stress? Any advice is appreciated.
Don't walk, run.

This kind of behaviour should be viewed as entirely unprofessional and unacceptable in any working environment; it astonishes me what gets politely overlooked in the academic world. What you describe is bullying. While the work may be exciting, it is doubtful that you will ever be able to flourish as an independent researcher facing daily abuse from your supervisor and suffering the toxic secondhand effect of your supervisor abusing your colleagues. I cannot imagine that after several years of that you will still be able to maintain the same level of enthusiasm for your work, and perhaps for academia altogether.