Oooh time for the ultimate test! If you found out you was uhm… serving blank delights, and your partner really wanted to have a baby (just for this scenario imagine you wanted a family with her too you red pillers) would you break up with her? So like she can find someone else..?
If the main foundations of the relationship was just to produce a baby, then that's not what I would call a particularly sound relationship. Need I say it that ideally, each partner should be comfortably happy in sharing their lives in long term with each other. Though yes, bringing a baby together in this world could cement the strength of the relationship. However, not being able to do so due to reasons pertaining to one or both partners can admittedly in some cases lead tension to build up between them. If that's the case, then yeah maybe bailing maybe an option. However, perhaps at least consider other options such as adoption, fostering, artificial insemination, surrogacy, or hell man even see what's available on ebay.