“When you invent the ship, you also invent the shipwreck…”– Paul Virilio
The sayings intention is to convey that all inventions have both positive and negative effects. But, it applies equally well to the idea of “nothing ventured nothing gained.” Every ship ever produced did not end up at the bottom of the ocean of regret.
Each of your failures could just as well have been a success. Failed attempts should never be a reason for not trying. Instead, it should become a chapter in your textbook of prosperity. Something you learn from, draw knowledge from and use to improve your next version.