Sorry for our late reply.
We found the reason hardly. We debugged the code one by one.
But there was no issue on our end, The reason is the ajax call translation issue.
We enabled the ajax operation translation on wpml setting. https://prnt.sc/116kwpd
We didn't know this option before. So we can know new feature in this time.
Please check again on your end.
Everything is fine now.
If you have the other questions, please let us know.
Best Regards, C-Themes