@RodrickSage - the worst thing is dreaming about work. I wanna tell my brain: "this is my time to rest. We're not clocked in right now!"
Ultimately, the solution is to resolve the source of stress at work. But when my mind was once helplessly hung up on a female... I found Lion's Mane mushroom supplements very helpful (available on Amazon & reasonably priced). It gave my brain the nimbleness to think of something else.