The following input with pkg `graphicx`, `pdfmanagement-testphase`, and `\ExplSyntaxOn` called in the preamble errors. No error, when `graphicx` is not loaded:
\DocumentMetadata{}
\documentclass{article}
\usepackage{graphicx}
\ExplSyntaxOn
\begin{document}
test
\end{document}