maxQuadratureError

How far the true density may integrate from one on the quadrature grid before the density distances computed on that grid are treated as meaningless.

The check is the general one rather than a guard against the particular case that exposed it: whatever the reason a grid fails to represent the truth, the truth will not integrate to one on it, and no distance measured there means anything.