Anyone can manage life during good times. It is getting through the bad times that makes or breaks a relationship. But, if you have tried everything and your marriage is still not working, it is not unreasonable to consider getting out.
Divorce is always painful and does leave scars.
So does a bad marriage. If you sacrifice for the sake of your children, make sure you have something left for yourself. You will need it in the future. Too many painful letters have told me so. Over the years, I have received many letters written by men and women, though primarily woman, who have stayed in loveless or abusive marriages for the sake of the children.