I think it was Thomas Edison, who made SO many attempts to create the lightbulb.

When asked about the thousand or so mistakes he had made while looking for the best answer he replied....something like:

"They werent mistakes, I just discovered a thousand ways that dont work"

Basically, in my opinion there are no mistakes, only lessons. It might be helpful for you to look at what you have done and consider mistakes to see what kind of lessons are there.