I generally advise against using electrodeConstraints.RealSpaceDensity. It's legacy method that used to be the old default (actually only one available), but we have discovered a lot of things with it that work less than satisfactorily.
The all-round workhorse is the new default, electrodeConstraints.Off.
However, for finite bias calculations when you are interested in plotting the voltage drop, electrodeConstraints.DensityMatrix is your only valid choice. Sometimes it's hard to converge the calculation with this constraint, in which case you would "downgrade" to Off, converge, and then restart with the converged calculation as initial guess, and run again to convergence with DensityMatrix.
In the absolutely worst case, when nothing helps, "downgrade" to RealSpaceDensity, converge, and then restart and run again to convergence with Off (and/or DensityMatrix as needed, if you are looking for the voltage drop).