A closed door can feel like a final rejection, especially after five years of hard work. But in the life of faith, a closed door is often God's way of redirecting rather than rejecting. He opens doors of opportunity, and He also closes doors to stop us from forcing what He is not blessing. The difficult part is accepting the closed door without trying to break it back open.
You said you put in hard work and end up with nothing. I do not believe that is true before God. No faithful labor submitted to Him is wasted. He uses disappointments to work in you before He works through you. Sometimes He is forming character, humility, and trust when the outcome is not what you expected. That can feel like loss, but it is not emptiness in His hands.
Do not let this shut your own heart toward Him. Keep your heart open to what He wants to do next, even if it looks different from what you planned. The Lord is not limited to one path or one institution. The same Jesus who holds every door is able to set before you another open door in His time. He is your access to the Father, and He goes before you.
I am asking the Lord to open the right opportunity, to give you wisdom, and to guard your heart from bitterness. This closed door is not the whole story. Keep trusting Him. He does not waste your labor or your tears.