Problem to solve a Navier-Stokes problem with a Custom Newton solver in FEniCSx

You are not setting your boundary condition correctly, as you are using a mixed finite element. Ref: Incompressible Navier-Stokes with particular scheme & mixed elements FEniCSx - #6 by dokken