Please create an example that reproduces this error, as having screenshots of bits of code is not sufficient to replicate the error.
As you can see in: Test problem 1: Channel flow (Poiseuille flow) — FEniCSx tutorial
a vector valued constant can be written as:
f = Constant(mesh, PETSc.ScalarType((0,0)))