Consider the following short test file:
% franz.tex
\documentclass{scrartcl}
\show\it
\end{document}
If I run on my system (where I keep TeX Live from 2012 on) with
/usr/local/texlive/2021/bin/universal-darwin/pdflatex franz
I get
> \it=macro:
->\protect \it .
l.2 \show\it
If I do instead
/usr/local/texlive/2022/bin/universal-darwin/pdflatex franz
I get
> \it=undefined.
l.2 \show\it
What happened? In the transition from TL 2021 to TL 2022, the koma classes changed the management of the old font commands. Until TL 2021, those commands were defined so that they would “work” also in the preamble. Later, they are “defined” only at begin document.
This is the cause of the difference: if you do \RenewDocumentCommand{\it}{...}{...}
in the preamble, you get no error with TL 2021, because \it
indeed has a definition. But you get the error with later releases because in the preamble \it
is no longer defined.
Solution:
\providecommand{\it}{}% in case \it isn't defined
\RenewDocumentCommand{\it}{...}{...}
However, I wouldn't recommend reusing \it
for any purpose.
Best Answer
Use
until it may be fixed.