Try using "wrap-table-header"
Specifies how the table header is wrapped. Set to 'all' to wrap all column headers. Set to 'none' to clip all column headers. Set to 'by-column' to wrap/clip column headers based on the wrap/clip setting for that individual column. The default is 'none'.
https://developer.salesforce.com/docs/component-library/bundle/lightning-datatable/specification
Thanks You,
Preeti Pujari,
Salesforce Consultant, Winobell Inc
For amazing insights on upcoming trends in Salesforce platform follow us at:
https://www.linkedin.com/company/winobell/
https://www.winobell.com/contact