When you, along with your Higher Self, chose the theme of your Life Experience and the challenges you would face you also chose a way through them. And no matter what you are facing, if you turn inward and upward and connect with your Higher Self and the Higher Realms you will find the way through.
Often I hear others say, "What was I thinking?" when referring to the experiences they are facing in this present lifetime. I usually reply, "You were thinking that ultimately working through this challenge is for your Highest Good. And you were thinking (in the Spirit world) that you are up to it, you are capable and you will prevail. You chose to get a Spiritual PhD this time around. And that calls for extra effort."
I know longer ask, "What was I thinking?". I now ask for guidance when I'm not sure of the way through a challenge or what I perceive is an obstacle. And then I wait for the guidance to come. Sometimes it's the voice of Spirit, sometimes a conversation and sometimes it comes through stumbling upon knowledge that helps with the situation. I just have to be more patient, at times, than I would like.
And I find comfort in the Truth that I can handle whatever I've chosen for my Highest Good. And I know with every fiber of my Being that I didn't set myself up for failure. And neither did you.