My Samsung CE1185UB Microwave from 2008 is starting to die. Everything works fine (well, the main timer knob which is a rotary encoder does a few skips and jumps

but a few days ago I saw that the display showed a blinking "12:00", which means that there was a power outage or similar. Such a power outage happens extremely rarely in our area but I ignored it and set the time. A few hours later it again showed a blinking "12:00". I put it some stuff and turned it on and there I saw what happens: the software restarts here and there and resets everything.
I disassembled the oven and examined the board where the microcontroller is sitting but did not see anything weird. I measured however 3.6V on the 5V rail (buffer capacitor) and 9.7V on the 12V rail (12V buffer capacitor).
Right after plugging the oven into the power outlet, both voltages are a bit higher (4V and 11V) and then both slowly decrease. I guess that's the reason why at some point the microcontroller shuts down.I replaced both buffer caps since their ESR was a bit high but that did not change anything. I found the repair manual including the schematics online but I am struggling a little bit to figure out what happens there, especially with that TNY266 which "integrates a 700 V power MOSFET, oscillator, high voltage switched current source, current limit and thermal shutdown circuitry onto a monolithic device.".
I don't really grasp how that TNY266 works so I have not idea how to debug it

Anyways, I measured a few other voltages and the rectifier BD101 creates from 233V AC a fairly stable 317V DC.
I attached the circuit with my measurements.
Any help is really appreciated...