Marry someone or study in the USA. University is super expensive though. Don’t take out lots of loans though I’d only do this if your family is loaded. We are at the beginning of an AI revolution, no one has any idea what job market will look like in 4-5 years.
You only mentioned high cost of living countries. Since you’re income won’t depend on where you live you need to think low cost of living. There are developed good countries that are low cost of living. also some good countries that are still developing but have developed cities or regions you can live in and are quite low cost.
If you’re stuck on Europe think south and east, not north and west. As a foreigner from India you probably won’t even notice the difference…