From what I read, most of these aircraft were at the end of their expected useful life when they were donated to Ukraine.
Throw them into stressful exercise and combat use, with new-to-these-planes maintenance staff, and critical failures should be expected.