Nextcloud does not install

My YunoHost server

Hardware: VPS
Version of YunoHost: (stable)
Repo: stable

I have access to my server: SSH
Are you in a specific context or have you made specific changes to your instance? : No
Installed apps: Bibliogram, Bludit, Cryptpad, Invidious, JitsiMeet, LanguageTool Server, Lutim, Nitter, Peertube, Pixelfed, Privatebin, Prosody, Searx, Teddit, Wallabag.

Description of the problem :
Nextcloud does not install. Installation aborts with the following error message:

Sounds like some “legacy” php packages are installed and should not be. In particular, php-stuff packages without explicit version numbers

We can try to solve the issue with:

sudo apt remove php-redis php-igbinary --dry-run

(NB: this only simulate what would happen to validate that this is okay, or if we need to tweak the command further)

This is what would happen:

sudo apt remove php-redis php-igbinary --dry-run
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  jpegoptim libimagequant0 libtidy5deb1 libzip4 optipng php7.4 php7.4-bcmath php7.4-imagick php7.4-pgsql php7.4-tidy php7.4-zip pngquant supervisor
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  php-igbinary php-redis pixelfed-ynh-deps wallabag2-ynh-deps
0 upgraded, 0 newly installed, 4 to remove and 0 not upgraded.
Remv wallabag2-ynh-deps [2.5.1~ynh2]
Remv pixelfed-ynh-deps [0.11.3~ynh2]
Remv php-redis [5.3.2+4.3.0-2+deb11u1]
Remv php-igbinary [3.2.1+2.0.8-2]

Is that okay? Can I do this without breaking anything?

PixeFed and Wallabag2 would not be OK about it because they rely on php-redis.

I have opened two PRs to try to fix the Redis one: Specify PHP version for Redis and Imagick deps by tituspijean · Pull Request #185 · YunoHost-Apps/pixelfed_ynh · GitHub and Specify PHP version for Redis by tituspijean · Pull Request #155 · YunoHost-Apps/wallabag2_ynh · GitHub

I do not know about php-igbinary though. I only see Pterodactyl needing it. Have you had it installed?
If you don’t know why it is installed, try apt-cache rdepends --installed php-igbinary and report the output.