'x' and 'y' lengths differ
Check those. Possibly in the D and H arguments.
D
H
Can you provide a reproducible example?