A bug involving the toc and \add@percent@to@temptokena discussed in Write if statement to the toc can be fixed with the following code provided in https://tex.stackexchange.com/a/513685/13492:
\begingroup
\makeatletter
\catcode`\&=14 %
\catcode`\%=12 &
\@firstofone{&
\endgroup
&&-----------------------------------------------------------------------------
&& Change \add@percent@to@temptokena:
&&.............................................................................
\long\def\add@percent@to@temptokena#1\protected@file@percent#2\add@percent@to@temptokena{&
\ifcat A\detokenize{#2}A\expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi
{\@temptokena\expandafter{#1}}{\@temptokena\expandafter{#1% }}&
}&
}%
Is this fix still required with the version of LaTeX included in TeXLive 2020?