I did it.
I moved to England (I'm American) to marry my English boyfriend in 1995. I had a four-year-old son from a previous relationship and in 1997, we had our own son.
A month after our baby's birth, he began a job that had him working away in Germany and France, Monday through Friday every single week. Throw in a few months where he worked continuously without returning home for a few full months. In 2001, I had another baby.
This set up lasted from October 1997-January 2002. We generally saw each other 72 days a year. In 2000, we only saw each other 60 days so that makes our 2001 baby even more miraculous! 😂
We moved to the US in 2004 and he had yet another job that had him leaving us for weeks at a time and at a moment's notice until 2017. I was back in the US but hundreds of miles from my nearest family.
Looking back, despite my being hundreds and thousands of miles from my family and my husband during our years together, it forced me to be quite resilient. Remember that technology wasn't as great then as it is now! I didn't have much of a choice in the matter, his job was his job. It needed to be done. I know that these aren't words of wisdom but just getting on with it is the only thing I can advise.
I'll admit that some days were better than others. What truly helped me was that he was "present" when he was with us. I know it doesn't seem like a big deal but trust me, it was.
Funnily enough, my husband has been working from home every single day since 2017 and for the foreseeable future. It's driving me slightly nuts. 😝
Anyhow, OP, I know those many weeks will suck but they won't be forever.