I would first check what the erro message is, I'm going to guess P0441 error or possible b2 out of range.
P0441 error is to do with N80 valve, replace valve with new hose. Problem fixed.
If the Oxygen B2 error, it means your 2nd oxygen sensor is failing.
What kind of mileage do you have? as the problems could be related else where.