I feel for you tbh.
There are aspects of modern life that weren't there previously - facial plastic surgery, super fast vibrators, alcohol marketed deliberately at women, strangling women in porn, death grip porn use from men, violent video games making young males more violent, use of steroids in gym men, youngsters taking ketamine and ending up in pads at 20, people doing OnlyFans - none of this is positive for mankind.
In my mind, you are just one example of some of the ways life has been degraded, and these are the types of consequences we are seeing.
I am hoping you can get things back together tho, because to me - just because you are one of these folks suffering one of these ills, doesn't mean you are a write off and that's it for you. Be a part of the change of tide instead - be one of those men who f*cked up but then turned his life around.
Here is what I would do if I were you -
Give your wife the space she has asked for.
While she is away, get stuck into your problems, for yourself.
Open your laptop and start exploring WHY you got to this place.
Get some professional help.
You have essentially cheated on your wife all this time - why?
The problems that brought you to that need to be resolved.
When your wife comes to you to talk, as will probably happen, you can then say about the progress you have made. You must make that progress for you, with or without her.
You cannot make her fall in love with you again, after the way you have treated her. And your sex life is going to have to start again right at the beginning.
How do you feel about the fact that she had to catch you for it to stop?
It is good that it has come to light however.....the sooner it is resolved, the better.