Did you let the code run for more than one iteration? I got the same error with other objects after letting the code run for a few iterations. It seems that the bounding boxes used some value from a buffer. See my error here:
Bounding Boxes are wrong. Too many Instances in Bounding Box - Omniverse / Synthetic Data Generation (SDG) - NVIDIA Developer Forums