Twitter plugin url callback 500 error

Your software
My Mautic version is: 5
My PHP version is: 8.1
My Database type and version is: mariaDB

Your problem
My problem is: URL call back ends with 500 error

These errors are showing in the log:

mautic.CRITICAL: Uncaught PHP Exception TypeError: “preg_match(): Argument #2 ($subject) must be of type string, array given” at xxxxxx/public_html/plugins/MauticSocialBundle/Integration/TwitterIntegration.php line 228 {“exception”:“[object] (TypeError(code: 0): preg_match(): Argument #2 ($subject) must be of type string, array given at xxxxxxxxxx/public_html/plugins/MauticSocialBundle/Integration/TwitterIntegration.php:228)”