I’d ask her or higher ups. What exactly is going on. If I was reprimanded or quality of my work was criticized on a faulty regular basis, I’d make an appointment to discuss what can be done so my work quality improves and I am not being constantly chastised. Id ask if she think you should get extra training etc I’d not be able to just guess what’s going and be nervous..
She might be nice in person because she has no issue with you as a person. She has an issue with your work and that’s what she addresses in emails.
I am not saying you need to improve. I am saying you got to play the game. Maybe get VP involved. Not to complain but ask those questions