Search Size for Toyota Avensis t25 BJ 01/2004, 2.4, 163 hp, 5-speed

Hello I am in despair, because my Toyota Avensis has for some time a permanently flashing motor light. By changing the lamda probe the error code P0051 has disappeared but the P0766 really makes me think. I was already close to Toyota, they then after considerations (because they did not know the error code themselves and the 2.4 in the version was also uncategorized to you) removed the oil tank of the automatic transmission and cleaned everything because of possible dirt paticles. ..only unfortunately that didn’t help anything and the workshop master doesn’t know how and what and about it I’m really mad because the Toyotos should know best. Now it’s out what it was just really sad why Toyota didn’t find out at the time. I brought my car to an automatic gearbox specialist in Dresden and he found that the solenoid valve works great, but the 5 gear does not switch. the oil change from Toyota was definitely slammed, because with such a black oil and the grids in the oil tank a hint of a mechanical story should have come in any case. At the end of the song is that the gearbox has driven itself but in good German also seems to be scrap, because the couplings have burned and what I know. Now the question is where to get replacement, because the gearboxes with such an excoten are not available at every corner and at every dealer… one of you an idea or someone knows who to turn to to get a gearbox for a Toyota Avensis 2.4 163 PS BJ 2004 5-speed? I am really annoying at the end and only disappointed and would be grateful for any help. MfG Ronny