Libreoffice cannot be used after the last update (bad_alloc)

With the last update (today, 2025-05-03) I have received LibO 24.8.5.2 480(Build:2) as libreoffice still.

Unfortunately, this version appears to be unusable, since it crashes with

terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Unspecified Application Error

or

terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
terminate called recursively

Starting in safe mode works, but as soon as one tries to deal with extensions the issue returns.

Interestingly, the upstream build from the Document Foundation (available via the aur) is OK. Wonder if the issue might be connected to Python that is certainly embedded at an older version in the upstream binaries.

Might not be related to system updates after all. Just discovered that the issue happens if I launch libreoffice from a shell in which a python virtual environment is active.

So I think that the issue is with the libreoffice start script, that should restore a sane environment for libreoffice in this case.