I encountered this issue of unsightly long header columns when exporting to excel.
Simple solution is to set the column width of the offending cell to limit its length.
A bit of a side effect is that the HTML output looks like this. Not that bad though.