Weird behavior from auto in Mazda3 2007

Mazda3s 2007 / CX-5 GT 2014

I have a Mazda 2007 2.3 with AT 5 speed 128k miles and one year ago I had issues when shifting from 2nd to 3rd. Two weeks ago I got the error "P2709: Shift Solenoid F Electrical" and it only goes to 3rd gear (I think was a limp mode).

Yesterday I move the car and left it directly in the sun and the condition changed only with the shift issue with the codes: P0733: Gear 3 Incorrect Ratio and P0744: Torque Converter Clutch Circuit Intermittent.

I changed the fluid and filter twice in the last year and I need your advice regarding if this a symptom of faulty TCM or the AT (solenoids etc.).