My e34 runs fine, then warms up and dies out

plus since there’s only 1 cts, i would imagine the gauge reads off it as well. and the gauge is accurate. I had a scanner on it again today and the gauge was saying the same thing that the scanner was

it was throwing 2 codes now though;

201: o2 sensor control
37: o2 sensor heater relay circuit