O2 sensor will not cause these problems.

Perhaps it's more wiring related like power and ground.