With portfolio diversification
https://lukasaapj810.publishlane.com/posts/diversified-portfolio-using-esg-and-thematic-exposures-a-balanced-view
With portfolio diversification, you can reduce the chance that a single bond default or sector decline affects everything.