Weed and erectile dysfunction

My bf of five years only gets rock hard and initiates sex when he’s high.

When we first met, he told me he quit weed and our sex life was amazing. Even after our honeymoon phase, we went to a country where we couldn’t bring weed, and we had great sex like normal.

Lately, he only initiates when he’s high now. He has a lower sex drive and sometimes even goes soft. It makes my self esteem go down and makes me sad. We had a talk about it, and he said it was bc he watches a lot of porn. I don’t care about porn but I told him to decrease it. But the more that I think about it, the more I think it’s the weed that’s the issue. Or a combination of both. I’m attractive and have a great body so I had to really grill that in my mind that it’s not me, it’s truly the weed and he needs to quit it. Sometimes I’ll take edibles with him and while the sex is fun, it doesn’t feel as good when I know it’s the only time he’s getting hard for me and I’ll forget it in the morning. I’m personally going to quit myself. He has quit in the past and said it really helped him. Just wondering if anyone has experienced this before?