Error after installing language pack: Unable to serialize value

That’s an incredibly disappointing response from a company that hosts Magento 2 sites. Especially when the Official Magento Documentation recommends a minimum of 2G for PHP to run.

Magento 2 has differing PHP memory requirements, based on how your system is deployed. In general, if you are setting up a single server store and plan on using the web setup wizard, we recommend configuring PHP memory for 2G.

So, yes you’re getting errors because the commands are “crashing” due to lack of memory. I’m surprised that you’ve not run into this issue sooner.

If you’re server doesn’t have enough memory allocated for PHP, then you’ll continue to intermittently run into this issue - Especially after your store goes live because it will be under heavier strain.

Now, let’s assume for a moment that your web server package does have a 2GB available, but PHP has a limit set. Then you might be able to increase your PHP memory_limit by editing the .htaccess file. Just refer to the end of How to install Magento 2.3 and build a web server (Update memory_limit). That might give you the joice you need to run everything without crashing.