I have flown with pilots with matrimonial problems which reduced them from normally very competent pilots to guys who could not get simple things right.
On one flight offloading a mistress after two days of pilot mistakes on a ten day block resulted in the affected pilot regaining his usual efficiency.
A Captain (with three divorces and numerous children) advised me early in my career to offload any domestic crap prior to boarding the aircraft and switch to airmanship mode and stay in it until sign off.
He used to kick the bottom step of the boarding ladder and mutter.. "F... em all" engage airmanship mode and then happily climb up into his cockpit.
Probably not in the company SOPs but it worked for us and flying was never work.