Oxygen sensor for subaru legacy

The problem is probably with the O2 sensor itself. Because the code indicates a problem with the heater circuit of the O2 sensor. The most common failure of O2 sensors is with the heaters. The heater in the sensor becomes damaged from thermal shock.

The sensor after the cat is probably the same as the one before the cat.

Tester