Used to fly long-haul freight. Tough on the wife.She called herself a single mother raising our young daughter. Time off was great, but being away sometimes for six weeks was challenging.
A strong marriage will survive.
Now I fly short haul, home every night on a narrowbody and won't look back. Much easier all around.
The trick is to be faithful to your wife and family and it will work out.
Not really a trick of course, just be a decent human being.