Well done.
Lack of confidence due to something unexpected happening whilst lowish hour and solo is common place.
Get some frequent hours building under your belt, find buddies to go flying with, do lots of land aways and your confidence will naturally rise to the point where you'll look back and take a different view on your reaction to what happened that day.
Remember this was never meant to be easy, otherwise everyone would be doing it.