There is such a impact of negativity when something doesn't go as we planned. Instead of looking at it as a failure, start to look at it as a process of elimination.
You are discovering your path and you are blazing a trail nobody has gone before you. That means you may try things and discover that may not work for you.
Don't beat yourself us. Recognize that you are one step closer to your goal! Never give up!!