An unknown N1QL error occured. This is usually related to an out-of-memory condition

Actually, I guess No, But I just wonder, why it is working in a local machine and when it is deployed to AWS production. we are facing this issues.