Error: Trying to access array offset on value of type bool error in HitRepository.php

Your software
My Mautic version is: 4.4.1
My PHP version is: 8.0.21
My Database type and version is: MySQL 8.0.30

Your problem
My problem is: Log is flooded with PHP warnings.

These errors are showing in the log:

[2022-08-09 23:54:47] mautic.WARNING: PHP Warning - Trying to access array offset on value of type bool - in file /home/comkt/public_html/mautic/app/bundles/PageBundle/Entity/HitRepository.php - at line 267 {“hostname”:“myserverhostname”,“pid”:3856296}

Steps I have tried to fix the problem:
Searched help forums. Nothing seems relevant. The other issues related to this error message are for Mautic 3 and for different PHP files.