Hey Satish, thanks mate - I took a quick look at your post. Is there any specific reason you want to use AWS Amplify for hosting the project?
I had a number of problems deploying to Amplify, in the end I swapped to using Vercel for the deployment instead.
It's very odd that it works locally and not on AWS Amplify though, sounds pretty frustrating...
One thing I did notice is that you're configuring images in your next.config.js file, which AWS Amplify does not currently support. AWS Amplify only supports Next.JS deployments on versions 9.x.x so that does not include images which were introduced in version 10... So that may be a potential reason.
If that doesn't help I'd recommend tweeting at AWS Amplify or joining their discord to try and get some further support.
Hope you can resolve it!