Any suggestions on continous error "ValueError: shape mismatch: value array of shape (62,) could not be broadcast to indexing result of shape (0,)"

Yes, all PyTensor sees is the python branch that was actually executed when that code ran