The only thing that helped me was a complete different schedule. University meant waking up early at night, now for work I wake up past sunrise and this feeling vanished completely.
Now if I wake up really early to get a flight, I get anxiety of missing the flight and exams, combined. It's like the most extreme coffee you can imagine.
I kinda had to live my nightmare school experience(Graduation day, friends and families all wanted to go to a certain restaurant, several of us got severe food poisoning, I ended up shitting my pants in public), and surprisingly, after that, I stopped having any school related nightmares.
Plenty of work-related nightmares, though! Mainly about things catching fire, but I chalk that up to multiple jobs where something catching fire wasn't that uncommon of an experience.
Now that I work retail, it's normally more mundane, like forgetting something in an oven, but back in my factory days...
About once to twice a week, something caught fire. Sometimes outside the plants, sometimes inside. Hell, on one occasion, while I was actively working inside the thing that caught fire!
Another common one some coworkers had were getting caught in vehicle lifts and crushed/cut in half. Close calls were more frequent than they had any right to be.
Basically, factory work is fucking dangerous, no one should be in that shit, we need massive safety reforms, and those need to come with lowered output expectations, because that is a major part of the stress people are under in a lot of those places. Yeah they're skipping key safety steps, you've given them 20 jobs to do in just as many seconds, and the safety shit adds on time.
Oh man, I actually got an email from uni after my last semester that said I couldn't graduate because I hadn't passed a core class. Was definitely quite stressful, would not recommend.
I have a version of this where I dream I went back to high school for some convoluted reason like redoing the classes to get better grades or take classes I wasn't actually able to. It's gone several ways, but it usually involves getting the schedule mixed up and finding out two of the classes are during the same period but I can't do anything about it or don't realize until it's far too late to fix.
This kinda happened to me. College graduation day, I walked, entitling was going well. Later I get an email from the school saying I didn't graduate because I didn't take a "cultural appreciation" class.
When you become a teacher, those nightmares get replaced with ones where you're asked to teach a class with zero prep on a subject you know nothing about...
Oh, no, wait, that ACTUALLY HAPPENS. ALL THE TIME.