Hi,
The error message points at a wrong file / line number. This was reported to the PHP project in April and PHP 8.1.6 now includes a fix so that it displays the proper file and line number. You can read more about this here:
github.com/php/php-src/issues/8251
With the correct file and line number, we should be able to move forward on the issue. So, if you can, please update to PHP 8.1.6 or newer and provide the new error message you'll see. That way, we can look into it and maybe report it to PHP as it might still be something that needs to be fixed in PHP.
In the mean time, you can turn off the "error reporting" and "debug" settings of the Joomla configuration and it will hide these warnings as they are not real errors and don't change the behavior of HikaShop / Joomla. They are there only for developers to act upon it, and as a user you can ignore them.