A thought from Reb Tzadok of Lublin in his work Tzidkat HaTzadik:[1]
In the precise aspect that is a person’s weakness, through that very thing comes his advantage. This is expressed in the Talmud’s (Sanhedrin 70b) statement concerning the fig leaves that Adam and Chava used to sew clothing: “It was the fig tree, for whereby they transgressed, they were taught to make amends.” Being that they sinned with the fruit of tree of knowledge—which was a fig—their rectification was in that very tree.
Similarly the Jerusalem Talmud (Berachot 2:4) states that Moshiach was born on the day of the Temples destruction.
As all one’s negativity is ultimately from G-d, He created it that the negativity itself should eventually rectify the individual.
[1] Sec. 70