Rather than accept divorce as an inevitability, there is also the option of discussing the possibility with your partner and making a mutual commitment to do what it takes to stay happy together.
Which is much easier with the added emotional maturity and life experience that comes with age.
Not to mention if you chose your partner after the age of 25.