I don't know the details on how often engines get repaired, that's a good question.
The lack of ability to do it during a "Real War" means that if the engine has problems, that fighter is now sitting in the hangar useless, except for parts to cannibalize.
In terms of the F-35 engines they under-speced them, so they have to run twice as hot[0] to cool the electronics:
"The original program engine specification allocated 15 kW [kilowatts] of bleed air extraction to support system cooling requirements, and the F135 engine was designed, tested, and qualified to this specification with a level of margin available for future growth," Schmidt wrote. "During the final stages of initial aircraft development, air vehicle cooling requirements grew to exceed planned bleed air extraction."
"To provide the necessary bleed air, the engine is required to run hotter, and the program is realizing the effects of this through an increase in operating temperature, and a decrease in engine life, which is driving earlier depot inductions and an increase in lifecycle cost,"[1][2]
[0] https://www.defenseone.com/threats/2023/03/f-35s-need-more-p...
[1] https://www.twz.com/f-35-engine-running-too-hot-due-to-under...
[2]https://www.pogo.org/newsletters/the-bunker/the-bunker-hardw...