Personally, I wouldn't advise you to stay in a toxic environment that’s affecting your mental state. I wouldn’t personally advise that at all. In fact, I strongly condemn it.
But who knows, there might be some exceptions in your case. First, ask yourself if you are in the right place. Reflect on the story of Joseph. God had a purpose for him, even in difficult situations.
Also, before you got the job, did you hear from God?
Take time to reflect on why this is happening.
Pray and seek His guidance.
May God see you through this period. Amen.
Shalom.