Behavior trees are used in many games, and are not particularly buggy.
It’s very likely there is some data that goes into the behavior tree that causes this behavior as programmed, and the solution is either to send in other data, or to program the tree differently.