Trouble with Yaris engine control unit

My Toyota Yaris diesel with BJ 2005 (460k km) is making a mess again. Slowly I have really no fun since this year already a big repair has been done with the exhaust and in the two years before I had to replace two wheel bearings at the front and both brake cylinders at the rear. So Toyota is not so problem-free then. But first of all no matter. Yesterday after the start of the car the yellow engine control light did not go out any more. So I looked in the manual what this is Of course, everything! That’s why I started to detect a change. This was then in a slightly lower performance. Since I was about 200km away from the place of residence I got the ADAC and he looked at the error memory once. But there was only one error in the engine control unit. No more precise definition. He then deleted the error and looked through it again. We then drove together another lap and everything w ar ok. Then I drove another 100km until another power drop occurred and this time the overheating light turned on. This then suddenly and I was lucky that there was a parking lot nearby because I was on the highway. So again ADAC was fetched and this time was searched for longer and found that the fan of the cooler is broken. fuses are ok and thermostat also seems to be ok. The yellow angel now taps on the engine itself or due to the previous error on a defect of the engine control unit. Car was towed, I got a rental car and tomorrow the car with car transporter comes to the home workshop. Now I would be interested what such a Toyota engine control unit can cost if that is it? What could it be from your point of view? I hope the engine from the propeller is cheaper because I think it is cheaper. Will not put so much money into the car since already relatively old and meanwhile e r is always more unreliable.