Exacly the same problem, but without E-commerce plugin.
We selected the polylang’s settings called: the language is set by the content.
When the language is set by the url, no problem at all.
After re-saving permalinks or deactivate/activate plugins, problem is solved but after some hours it again happens and I have 404 page coming back.