Hey man, there is hope for recovery for PIED. I had about the worse case I have seen ( and been on here for about 4 years).
First, I would come clean with your wife. Let her know that you are struggling, and why. Dopamine hits are much easier with P than with another person, though the rewards for intimacy with people is what we are supposed to use Dopamine for. She will probably be shocked and hurt, and feeling betrayed, which she is entitled to those feelings. But I believe virtually every spouse would want to know if their loved one is struggling with something as serious as an addiction to P.
There are many on here including myself that can help you if you decide to tell her. You won't have an authentic relationship full of intimacy and love until you do.
We are here for you man!