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.

Your software
My Mautic version is: 4.4.4
My PHP version is: 7.4.29
My Database type and version is: 10.3.37-MariaDB-0ubuntu0.20.04.1

I have the same problem. There is one line for each added contact, identified or not. Does any one knows, what is leading to this warning?

One complete warning-line is:
[2022-12-04 14:14:53] mautic.NOTICE: PHP Notice - Trying to access array offset on value of type bool - in file /var/www/html/m/app/bundles/PageBundle/Entity/HitRepository.php - at line 267 {"options":{"leadId":"1217","0":"https://ionutojica.com/%","second_to_last":"5346"},"sq":"[object] (Doctrine\\DBAL\\Query\\QueryBuilder: SELECT h.date_hit latest_hit FROM page_hits h WHERE (h.lead_id = 1217) AND (h.id <> 5346))","result":false} {"hostname":"ubuntu-2gb-nbg1","pid":2241445}

Does anyone understand what the warning line say?

Bumping this. Any ideas?