I can't tell you what happened. Nobody can. Complex interrelating parts/systems, and then outside input/factors. I started getting hesitation (chugging) and determined that it was my increasing "spirited" driving style, causing lugging of the engine by not downshifting far enough with the
paddle shifters in manual gate. Lately, I've taken to letting the car shift for itself, heh. And that combined with less demand for heavy boost has eliminated the issue. Yours sounds like a more extreme case of possibly the same thing. If you jammed down on the accelerator in Comfort or Eco, I think that can bring on a CEL and rough running as the car tries to catch up to your sporty driving demand not in Sport mode. You didn't give enough details. When I am not in Sport mode, and I want something close to WOT (kickdown switch), I will press smoothly: I won't punch the accelerator. I've had the CEL come on exactly once, and then go out when I backed off after feeling the engine hesitate/chug before finally delivering full power. I've never felt the engine run rough or idle rough. So, we are not able to tell if the same experience is a minor manifestation (mine) compared to a major manifestation (yours) of a similar driving style or habit.
Sorry that your codes didn't stay for the techs to see. But I'm glad that the alarming roughness went away along with the disappears codes.