weird behavior AT Mazda 3 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 have issues when shift 2 to 3. Two weeks ago I got the error "P2709: Shift Solenoid F Electrical" and only go to 3dr gear. (I think was a limp mode)

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

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