[Tex/LaTex] Problem with biblatex /printbibliography[heading=bibintoc]

biblatexcompilation error

I get the following error:

Undefined control sequence 
<recently read> \less 

l.58 \printbibliography[heading=bibintoc]

I am using Overleaf.

My main.tex file is the following:

\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{subfiles}
\usepackage{hyperref}
\usepackage[backend=biber, style=numeric, citestyle=nature]{biblatex}
\usepackage[babel]{csquotes}
\addbibresource{thesis.bib}

\begin{document}
\subfile{abc} 
...

\printbibliography[heading=bibintoc]
\end{document}

If I remove [heading=bibintoc] then the error moves on to the next line, so I'm not sure it really has to do with \printbibliography. I first assumed that I might not have closed a bracket but I have checked the main.tex file and they are all closed.

My question is: How do I fix this error?

Best Answer

as per @moewe 's comment: there was a \less (2 actually) in a bib entry. As soon as I deleted that the error disappeared.

with the following files you too can reproduce this error:

main.tex:

    \documentclass[12pt]{article}
    \usepackage[utf8]{inputenc}
    \usepackage[english]{babel}
    \usepackage[backend=biber, style=numeric, citestyle=nature]{biblatex}
    \usepackage[babel]{csquotes}
    \addbibresource{thesis.bib}

    \begin{document}

    \cite{xyz}
    \printbibliography[heading=bibintoc]
    \end{document}

and thesis.bib:

    @article{xyz,
    author = {Author},
    title = {Title$\less$}
    }