One can run multiple php instances. Why not just set the system php to 8.0 for nextcloud 23. I explain how to do it in this post