Been there done that.
I had similar issues with my 2007 car.
My mechanic keep telling me it's a wirring fault and kept on spending money.
In the end I gave my car to him and he sorted it out.
The car kept giving a new error everyday.
Started from exhaust flow sensor, tps sensor, oxygen sensors , what not.
The only problem I was facing was that my car was dying on idle.
But it cleared after a lot of this and that.
In the end it was the mechanic who got it fixed not sure what did he do. He just told me it was some wiring problem that is why it kept giving new problems