Can you name the qualities that YOU really like about yourself? What are you good at? What kind of friend are you?
Now. Why wouldn't someone be happy to partner with that?
Trust your SO. He chose you, chooses to remain with you. Unless he is a martyr or into self punishment, you must have some positive qualities that he finds worth the effort.
Shut down that voice that has negative projections in it.