I have the following code:
\begin{landscape}
\setlength\tabcolsep{3pt}
\begin{longtable}{m{0.5cm}|m{3cm}|m{3cm}|m{3cm}|m{9cm}}
\hline
\textbf{C1}&\textbf{Col2}&\textbf{Col3}&\textbf{Col4}&\textbf{Col5}\
\hline
\endfirsthead
\endfoot
1&Self-report&-&D_alcohol_consumption&\\hline
2&Self-report&-&Trastorno del pensamiento controlado&\\hline
3&Self-report&-&D-alcohol-consumption&\\hline
\end{longtable}
\end{landscape}
It produces this table
I need to put very long variable names in the column "Col4" and many of them have underscores, like the first row. But it does not fit in the cell and extends to "Col5". What I expect is to automatically break the line like the second row.
I think it is something related the underscore, because in the third line I replaced them with hyphens and it is what I expected. But I need to use the underscores.
Any suggestion to keep the underscores?


