Bank 1 sensor 2 is the rear O2 sensor behind the cat. What the codes are telling you is that either the heating circuit in the sensor is bad or the wirng to the O2 has an issue.

Usually this is a bad O2, however one should not rule out basic visual checks of the wiring first.