The following MWE
\documentclass{article}
\usepackage{titlesec}
\usepackage{footnotebackref}
\begin{document}
\section{Whatever\protect\footnote{Problematic footnote}}
\end{document}
gives an error if both the titlesec and footnotebackref packages are loaded (while it works as expected if any of them is removed). I tried using \footnotemark and \footnotetext, to no avail. Any idea on what might be going on and how to fix it? (I do know using footnotes in heads is not advisable, but anyway...)
