Resign. And till then, be prepared with some diplomatic replies which puts her in hard spot. For ex, if she claims your estimation of 10 days for a task is too much, you could ask her what is the more appropriate estimation in her view, and then if she says- 4 days, you could reply back further that you don’t think dev, unit testing, deployments, qa testing, all could not be done in that short time, keeping in mind there are at least 3 complex scenarios you see in the task… something like that, just prepare yourself better to counter. After a while, if this happens 2-3 times, when she starts getting embarrassed after being put in tough spot, then she may decrease that kind of behaviour.
Essentially, it will never stop, because most people’s core nature remains same. But with proper strategic replies, her insulting and toxic behaviour may decrease a bit.
And ultimately, just resign as soon as you get a good opportunity