Various events and phases in our life bring meaning. Like other relationships in your life…marriage…and its pros and cons can develop your character…provides lessons to learn from, etc.
But, I don’t see it as the be all/end all to life. I don’t think it’s the cure to to every problem. Life isn’t meaningless for those who are single. It doesn’t lose meaning for those that lose their spouse (divorce, death, etc). And for some people, an end to a marriage can bring greater peace and stability. Not everything is black or white.