Of course, five years is not short. Being able to get along for five years proves that you have your own ability.
When your boss is a different person and the other person no longer accepts your way, then you have only two choices, or you can implement it in a new way; Either get out of here and go on your way.
But I hope you can listen to other people's opinions carefully. Maybe there will be something worth learning and accepting. After all, she is the boss of your boss, the boss's boss!
I heard a story: It is said that there was a very wise Zen master who could solve any difficult problem smoothly. There is a person who is unwilling to accept it and deliberately makes things difficult. So I caught a bird, held it in my hand and asked the Zen master, "Master, I heard that you know everything and have infinite wisdom, but do you know if the bird in my hand is alive or dead?" The man thought, if the Zen master said it was raw, he would trample the bird to death at once, and if it was dead, he would immediately let it go, so as to embarrass the Zen master. ...
As a result, the Zen master said softly without looking at him, "Amitabha! Donor, donor, who lives and dies, everything is under your control ... "
"Who lives and who dies, everything is under your control." Do your best in everything and have no regrets in life!