Thank you, Craig. I determined that this error was related to the CSP which came in Magento 2.3.5 and Magento 2 document suggests to create a custom module to whitelist the third-party scripts such as Google API, Google Recaptcha.
I read in many other articles that CSP is not mature and does not solve the practical security issues so I disabled it which actually removed the error.