God knows how the troubles of this world can affect us and so He tells us to be content instead of being happy.
If you are not willing to stay in a relationship when it gets hard. You have lost. You never had it. It was a facade you built from mud. You never had love, because it just washed away.