I have had the same codes on mine and also codes refering to air / fuel ratio.
All signs led to O2 sensors.
My codes have come on with both a stock filter and an aftermarket.
I have noticed that they come one when the temperatures get hot of cold for the first time in the season.
This summer, on one of the first 80+ days we had, and I was driving expressway a while, the light came on. It was on and off intermittently for a week, then stayed off until this fall. It came back on the first day I was driving expressway for a while and the temp was under 30. It went on and off intermittently for a week, and now has been off for 2 weeks straight.
I will say that both times the light came on, I swapped / cleaned airfilters and that seemed to get the light to turn off after a few cycles. Dirty air filters and the light stayed on for 20+ cycles