Why is my new app not working correctly in production?

Hi, I am new to Shopify app development. My app is working fine in the Dev environment, but in production getting weird problems. The app is unable to open(basically exit the iframe) for some time and if the app does not open/exit then it’s loading and in the console showing the mentioned error.

Needs help very badly.

Thanks