Ok, that’s going to be pretty tricky. You’re probably going to have to apply for a couple of consecutive re-entry permits after you get your green card. You’re going to run into trouble trying to keep a green card by touching down once a year for four years, that is clearly not residing in the US as required. See this for info https://www.uscis.gov/sites/default/files/document/guides/B5en.pdf
as an aside, with that much studying still to go imo a US qualification really should be considered instead, it’s going to stand you in better stead for the job market.