I don’t know what country but, in the US that’s a textbook example of constructive dismissal if they force you to work in office. It’s a primary example of work conditions changing by the employer that prevents you from being able to do your job.
It wouldn’t help you keep your job but, it’s highly likely it would make you eligible for unemployment while looking for a new job.
deleted by creator