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.

\ULdepthto\maxdimeninstead of1000ptshould do the trick. – Udi Fogiel Sep 26 '23 at 23:05ulemchanged in 2019, probably in order to fix the issue of “Dimension too large”. – egreg Sep 27 '23 at 08:06