To fix the issue, remove the amzn/amazon-payments-magento-2-plugin
package:
composer remove amzn/amazon-payments-magento-2-plugin
Then re-compile the Magento’s code.
github.com/amzn/amazon-payments-magento-2-plugin/issues/360#issuecomment-430250971