This is a weird one, but to quote the relevant snippet from Matthew Skala's excellent bug report:
When the font size is 14 or 17, the value of \cftnodots times whatever
font-dependent dimension it gets multiplied with is so very large that
TeX writes out a bad DVI file.
In short, we either need to work around the leaders entirely (say using \hfill instead) or scale down the large number that gets used for "no dots":
A simple workaround is to after loading tocloft give the \cftnodots
macro a smaller value. Five thousand works for me:
This is a weird one, but to quote the relevant snippet from Matthew Skala's excellent bug report:
In short, we either need to work around the leaders entirely (say using
\hfill
instead) or scale down the large number that gets used for "no dots":