I have the following MWE:
\documentclass{article}
\usepackage{ulem}
\newcommand\deeperuline{\bgroup\markoverwith{\rule[-1.1ex]{2pt}{0.4pt}\ULon}
\begin{document}
This \deeperuline{does} work \uwave{nicely}.
This \deeperuline{gives \uwave{an} error} but renders nicely.
\end{document}
The intention is to have a sentence where a part is underlined wavy and another part (that contains the wavily underlined part) is underlined with a line that is deeper than a normal underline (so that it does not cross the wavy underline).
The above code produces the error "dimension too large" for the second sentence but both sentences render nicely. Is there anything I can do to silence that error?
I observed that error both in pdflatex and in xelatex.