Not sure what you mean by your "context" here. A marriage is not considered "null" even if one or both parties is known to be infertile. This happens more frequently than one might think, and the couples are still validly married.
In other words, fertility is not what makes a marriage valid, nor was this ever the case.
Or am I misunderstanding you?
There was a case a few years back where the RCC denied a couple a church wedding because the man was not physically able to have sex due to spinal cord damage. IF the couple knows this and understands this they should be allowed marriage in any church. It was a FR thread years ago I can't remember how far back right now.
But on the other hand thanks to the intercession of a couple of Nuns at a hospital you & I are familiar with right before my second marriage our wedding her severe despite disability took place. Though it was in a Catholic Chapel our Baptist minister did the service. But the hospital Chaplain at the time {Priest} and Nuns were there also.
I'm not anti-Catholic & my dads family is about 50% Catholic. I just think some of the rules are a bit too much. St Mercy as most call it now due to several recent name changes hid my then girlfriend now wife in the hospital real well from an abusive EX wanting to do more harm. One Nun a black-belt kept a close eye on her.
The first time I got married I asked my cousin to officiate. He said he couldn't because neither of us were Catholic. That's fine no problem. When she passed three years later he did do her funeral service at my request. That he was allowed to do but no Last Rites which was fine also.