It's not you and you are not the problem. Unfortunately the easy availablity and prevalence of pornography, free and easy to access, seemingly normalised and often argued harmless and benign is the problem.
Some men become addicted, they seek out more extreme, more risky, and eventually seek out how to reconcile the fantasy to reality by using cams. Cams are paying for sex, this is far closer to the aetiology of prostitution.
Some of these men will have started out as decent men, just bored, just curious. By the end of it they will be decieving selfish bastards spending family money, having little empathy for women, and in denial and blaming their partner.
This is pernicious and it's causing massive harm to men, women and families.
I'm sorry you have been through this. Twice. But it's NOT you. And it's a huge issue, and you can't fix it or him or you unless you can: get some support and counselling for you, make him realise that he has a huge issue which is not your fault and it's up to him to get help for himself, and be prepared to walk away if he won't.
You absolutely do deserve to be loved and desired, and to be respected. A porn hound is not capable of any of that.