Chart height and width getting affected due to long legend

Hello Hope you all are doing fine. I wanted to ask if there is any way I can apply word wrap to my legend. Due to the legend being large the chart is getting small, i.e. its width and height are getting affected as shown in the pictures.