@aleix I ran into the same issue and was able to get the site back up using your drush script (thanks for that!) I'm now getting an error on my status report that says:
Mismatched entity and/or field definitions
The following changes were detected in the entity type and field definitions.
Product variation
The Product variation entity type needs to be installed.
I did the standard cache rebuild/run cron and tried re-saving my product variations but it persists. I am able to purchase a license so it's not clearly impacting the functionality as far as I can tell. Is there an extra cleanup step I might have missed?