It seems like you are running a 32-bit PHP version. Nextcloud needs 64-bit to run well. Please upgrade your OS and PHP to 64-bit! For further details read the documentation page about this
See forum discussion. Seems updating to Nextcloud 25 completely breaks a 32-bit installation, but I cannot personally verify this yet. Help wanted. Directly related to
Need help triaging this! If it is true I cannot say it is a surprise, but I do not have a 32-bit instance to test personally, nor have I found any linked documentation yet.