Zend certified PHP/Magento developer

Magento 2.4.3 Paypall Express Checkout returns to a blank page (500 error)

The order is placed and the payment goes through, but the user just sees a blank page (FF) or a generic 500 message (Chrome). When renewing the page, the message is

A successful payment transaction has already been completed. Please, check if the order has been placed.

Other payment methods are fine.

Cannot see any error messages in the payment.log

Nothing relevant I can see in system.log or exception.log

Getting some emails from Paypal about a failed payment.

How can I troubleshoot this?

upd: the apache2 log shows many errors with aws and amazon pay – can these be disabled if not used?