[test] Fix flaky error-recovery test (#76789)
Fixes https://github.com/vercel/next.js/actions/runs/13651039022/job/38159568577?pr=76787#step:33:639
Sometimes we didn't get to assert in time before more errors come in. Now the test ensures that each error is intentional.