in case someone also has the problem with their Nextcloud and the broken external storage (smb):
sudo apt install phpXX-memcached
sudo apt install phpXX-smbclient
has obviously not been installed as a dependency for the appropriate php version.
I have been looking for the simple solution for ages