Paypal version: 5.3.1 issue with shopware version 6.4.15.1

Hi,
We are facing an issue with PayPal plugin version „5.3.1“ with shopware version „v6.4.15.1“. If we open the developer tools in the shopware backend, then we are facing an error message in the console.
But the same Paypal version is working with stable shopware version „v6.4.6.1“.
When we open the elements tab, we could see two pay-pal.js files, and one of the file path from the index.html, which is causing the issue. But, it is not happening with the stable version, we are able to see only one pay-pal.js file. Can anyone come across this issue?
Could you please help us to resolve this issue?

Thanks

Error we are facing: