Nextcloud doesn't recognize php 8.4

You may be able to solve the issue with this thread. I had an almost similar problem, not so long ago