'amp pages stopped working at nextjs project, error at cdn.ampproject.org, resources cannot be loaded

I have an issue with AMP CDN. It has been integrated into Nextjs as I use the AMP feature in Nextjs itself, it was working fine yesterday but today the following error came up:

image of the error in console



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source