there is a update for TCPDF-2024 here: https://github.com/tecnickcom/TCPDF/tree/6.7.6
you can simply replace your old one with this new one here