I have encountered such situations, but I didn't become a gloomy grump who spreads his negativity to others. You need to be able to take hits, understand that things happen differently, and that if something doesn't work out once, twice, or three times, it doesn't mean you should give up and abandon life. There is always something good in life that will bring you joy and light your way, even if it's not the happiest path or with all the desired content.
And regarding the "happy ending," it's also debatable. You shouldn't base such questions on silly couples who get married six months or a year after meeting, who haven't had time to get to know each other properly and then realize that they were only connected by infatuation, passion, and other emotions/desires of a specific nature. It depends on the people, their compatibility, common views, interests, etc. I have acquaintances who have been living together for several years, and perhaps the initial burst of emotions from falling in love is gone, but there is love, many other good moments that have emerged over time, and they bring joy and make them happy.
And all this is even more true for something like "love," thanks to books, movies, and visual novels that instill in us the feeling that love is such a happy ending that it's all over, let the credits roll.
Where do we end up when we save the world?