What you were/are experiencing is completely normal, and there has been a recent increase in interest in medical research on this phenomenon, at least in my field. Most of my knowledge revolves around how emotional status, and large psychological/emotional swings can affect our pain responses, but it makes perfect sense that it would affect us ergogenically, as well. For sure, passing on the scheduled workouts was the right choice in your case, and, perhaps more importantly, you also made the right move in not beating yourself up about it. It sounds like a combination of completing workouts once you were able, and being outside and just riding at an easier pace, was the right recipe for you.
It’s great that you chose to document your experience with this; hopefully it can help others see that emotional stress can have very real effects on athletic performance, pain perception, energy level, etc.