My very dear one,
He lived with you for many years and looked after you. It is most unbelievable, very kind. Of course, you have to understand he also needs to find his own happiness.
This not the first time—he has left you numberless times from beginningless rebirths and you have also left him numberless times from beginningless rebirths.
His leaving you now is the result of your past sexual misconduct, and both of you have created this. As long as samsara exists, you will do the same thing numberless times, so it will be endless. That is karma, the nature of samsara. You should generate compassion for him. That is most important.
He has been trying to find happiness, which gives him satisfaction. So far he did not get satisfaction because he is looking for happiness in the samsaric way, which is only suffering in nature.