Downgrading Ubuntu version to 20.04 also worked for me when needing to use php8.3
pool: vmImage: ubuntu-20.04