Check your wiring to the O2 sensors and monitors. It is probably chafing somewhere and shorting out. (When you apply more power, the engine move a bit.)
There are no codes that say an O2 sensor is bad, not one. There are codes that say there is a problem with what it is reporting. There are even some that say it is probably bad, but all of them take you to different troubleshooting charts where you have to do some tests to determine what is really bad (wire, connector, sensor, PCM, engine, fuel system, vacuum leak, ...)