Cosmic-freedom, it is so true when they say that failures can be steps towards success. I did not talk till I was 5/6 years old, was chucked out of nursery, came last in the class at the age of 7, came in 3rd place the following term (and went up from there), got 3/100 aged 11, teacher told my mum that I was "mentally retarded" when I was about 11, scored top % for Mensa aged 16/17 and graduated with a first class degree. Trust me, failing an exam might seem like the end of the world sometimes - bit it doesn't have to be. Have two children and all I have said to them to try their best and honestly if they messed up, it still wouldn't be the end of life/world. There is a life beyond exams and education. I grew up in third world countries - though now I live in the UK and I agree it is easier here compared to some of the places I grew up in.
You have a fire to succeed - don't let that go. Two years of work have been impacted. Yes - it will probably be extremely challenging. A lot of millionaires and billionaires are from the poorer countries.
Ultimately this is your life and only you can decide. But just hoping that you will consider something that is possibly beyond your thought process at the moment - or I might be wrong in which case please forgive me. Just trying to reach out to you as your message reminded me of my children.