Error listing apps after install nextcloud 25

Two threads already talking about this issue. I have posted a (temporarily) solution here…

https://help.nextcloud.com/t/apps-page-error-after-update-to-25/148083