Issue with "Trying to access array offset on value of type null" on multiple sites

With 2 totally different bedrock installs, we are coming across the same error in the PHP server logs on production.

PHP Warning:  Trying to access array offset on value of type null in /home/customer/www/......../public_html/..../bedrock/web/app/mu-plugins/bedrock-autoloader.php on line 176

Both sites are running on PHP 8 and WordPress 6.6.1.

I think it is causing a critical error to appear either on save post action or on loading of the front end of the site. There are no other errors in the PHP logs, just this one.

Thanks in advance for any help!

bedrock-autoloader.php was abstracted into a package over 4 years ago: Use Bedrock Autoloader package by retlehs · Pull Request #519 · roots/bedrock · GitHub

You will want to update your projects accordingly.

Thank you so much for coming back to me.
So where I currently have the code in bedrock-autoloader.php as v.1.0.0 I should replace all code in that file with the code for v1.0.3?

Thank you
Suzie