Did Danny Ainge mess up by not trading Lauri Markkanen?

Lauri Markkanen is having a down year shooting 42% FG, 35% 3P after having near 50/40/90 seasons the last couple of years. Lauri is now 27 years old and under contract until 2029 for 47 million per year.

The Jazz intentionally sit players to lose games once a week and Lauri is becoming associated with losing. What is Danny Ainge planning?