A bit of an odd take perhaps, but I think the Juve move when he was young coupled to his association with Raiola had dangerously inflated his ego and feeling of self-worth to the extent it sabotaged his career in the long run. He was made to feel like this GOAT tier player that was the envious desire of every club on the plant when he had no business feeling that way. Winning the world cup obviously contributed to it as well.
I remember the interview he did when he rejoined us, he said his goal was to win the Ballon d'Or. Looking back, while it as an admirably ambitious goal to have, but in truth he hadn't yet proven himself to be the world beater we expected him to be. Had he stayed on with us the first time, humbled himself, avoided parasitic agents like Raiola then he might have developed into a more down to earth player with a better work ethic. Instead we got a hollywood player obsessed with social media and believing he was footballing royalty constantly flirting with other clubs at the behest of his agent.
Its a massive shame the way it ended, but unfortunately for him I don't expect it would get better for him once he (hopefully) leaves for his next club. PSG already have an issue with a star-studded refusing to do the defensive dirty work, Madrid look like they've cooled their interest, and I don't see other clubs being able to afford his ludicrous wage demands and agent fees.