The recent changes to ngsPETSc have broken main. The timing is very unfortunate since it coincides with the ngsPETSc migration.
For now I will xfail the tests in #4782. The fixes should be put into either that PR or as a separate Firedrake PR afterwards. They should not go into ngsPETSc.