Check the wire harness for the rear O2 sensor for damage and the connector is fully engaged. Cobb turbo heat shield can get really close to the main harness and cut the wires (happened to another 2015 STi). Has the front O2 sensor ever been replaced? If so, with an OEM unit?