Cervantes, who wrote Don Quixote, had a life of failures.
He was born in 1547. He was badly wounded at the battle of Lepanto. In 1575 pirates captured him, and he spent five years as a captive in Algiers, according to Britannica. In 1597 he went to jail in Seville over a tax-collecting money problem, as The Collector tells it.
Don Quixote, Part One, came out in 1605. He was 57. He finally got somewhere.
The wound from Lepanto, in October 1571, cost him the use of his left arm and hand. In Algiers he tried to escape four times. His family could not afford his ransom, so a religious order, the Trinitarians, paid it and set him free in 1580, says Wikipedia's account of his life.
Back in Spain, his plays came and went fast. His first novel, La Galatea, came out in 1585 and got little notice. He took jobs buying wheat and oil for the Spanish Armada, then collecting taxes. He spent much of his life poor and unknown. Then Don Quixote came out and was popular right away. Part Two followed in 1615, and he died a year later, in 1616.
A 2018 study in Nature, co-written by Dashun Wang of Northwestern's Kellogg School, looked at the careers of more than 20,000 scientists, 3,480 artists and 6,233 film directors. About 90% had at least one hot streak, a stretch where their work was better than their usual. The timing of a person's greatest successes was random, Kellogg Insight reports. It could come at any stage of a career.
Wang's advice: keep producing, because your biggest work may still be ahead. Cervantes kept going after war, captivity and jail. Finish the next piece. Each one is another chance at the one that lands.
Never give up.