Consider quitting. You don’t actually have to do it.
Yes you say you need the job but by just considering it you can take corrective action you previously haven’t considered. If you wanted to quit how would you do it?
Udemy gives you quick and dirty knowledge, not an industry certification. So it’s probably less useful than say getting a CKNA or somesuch. I would work on becoming more job mobile, and simply quit one day under such circumstances. Before quitting I would reevaluate on a month-to-month basis and do it only to my advantage. One thing I used Udemy for is to get the knowledge for a certification combined with official resources it’s usually the edge I need to get a piece of paper if I want it. Small tweaks like that can get you lots of paper but more importantly the actual skills. Then you can visit other employers and simply quit with sufficient notice.
With hot in demand skills you could be out the door the next day.