Your loyalty is misplaced. Update your resume, get your personal appearance spruced up, brush up on your interviewing skills and start looking for a better deal elsewhere.
would just add, if you are in america, there is very little labor protection, so just find a new job.
i read about the one lady who helped create one of the vaccines - maybe biontech, not sure.
she got pushed out of everywhere, fired, demoted, harassed, etc. -- kept doing good work whever she went.
eventually had the breakthru, etc.
think she said, even without the prize money, she would have been happy/proud of the work she had done.
she had this consistent thought that every problem also presented an opportunity.
which i think is not a bad way to look at things.