Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires nextcloud/ocp dev-master -> satisfiable by nextcloud/ocp[dev-master].
- nextcloud/ocp dev-master requires php ~8.0 || ~8.1 || ~8.2 -> your php version (7.4; overridden via config.platform, actual: 8.1.24) does not satisfy that requirement.
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.