[verb て-form] + こそ
The grammar structure てこそ emphasizes that only by doing something can a certain result or meaning be achieved. It conveys the strong feeling that the action in the て-form is an essential condition – without it, the result would not hold true. It often translates to "only by ~", "it is precisely because ~", or "not until ~ does one truly ~".
てこそ is formed by attaching こそ (an emphatic particle meaning "precisely" or "indeed") to the て-form of a verb.
The most common use of てこそ is to stress that the action before てこそ is indispensable for the result that follows.
Here, the speaker is asserting that there is no other way – effort is the one true path to success, and failure is what genuinely leads to growth.
てこそ is used when someone realizes the true value or meaning of something only after a particular experience.