Complex sentence: They are typically good with children, but due to their herding behavior they may nip at their heels during play, but this can be trained to not be done.
Split into simpler sentences: They are typically good with children, but due to their herding behavior. They may nip at their heels during play, but this can be trained to not be done.