Php error occurred

When I upgraded to PHP 8.1 or PHP 8.2, which is recommended by WordPress, the following error occurred.

/wp-content/plugins/tubepress_pro_5_1_8/vendor/twig/twig/lib/Twig/Node.php on line 42

The specific versions are 8.1.22 and 8.0.30.

please confirm.