For SURE this happens to me all the time. I can even think of some real rough life periods were I just got on and right off the bike.
Tips:
Remember your training at work. Try to focus on it. Write a sticky with the workout of the day and periodically glance. Keeping big picture helps ignore the little stressors.
Eat well at lunch. Helps for ride and stress.
No coffee after 11:59am.
Workout in the am? Helps ensure the work stresss doesn’t kill the ride. Too hard for me personally.
Final resort - drop, swap, reduce intensity, orreduce time in the ride if work was that bad. That was a form of stress anyways so you’ll not lose a bunch. Doing petit while stressed ain’t the worst thing.