ValueError: conflicting sizes for dimension 'chain': length 1 on the data but length 2 on coordinate 'chain'

Try not using the samples nor the keep_size arguments. One of the screenshots has keep_size=False which is using the argument