EmailBundle/Swiftmailer/Amazon/AmazonCallback.php on line 147

Your software
My Mautic version is: v4.4.10
My PHP version is: 8.0.30
My Database type and version is: 10.5.25-MariaDB-deb11-log

Your problem
Internal Server Error 500 the first time I try to log in. Then I can log in fast.

These errors are showing in the log: My problem is: [proxy_fcgi:error [pid 488283:tid 490019 [client XXXXXX AH01071: Got error ‘PHP message: PHP Warning: Undefined array key “Type” in /XXXXXXX/public_html/app/bundles/EmailBundle/Swiftmailer/Amazon/AmazonCallback.php on line 147’

Steps I have tried to fix the problem:
I have not found any solution yet.