Behavior tree roadblock

So, I’m trying to work on implementing behavior trees for the sake of flexibility in my enemy code. I’ve been trying to follow a tutorial, and it was going pretty well, however since I’ve gotten to the part to make it automatically switch states, it…doesn’t work. Instead of chasing the player upon spotting them, it just freezes up. It won’t let me post the video of what is happening, but it looks like it might be doing this thing where upon detecting the player it keeps rapidly trying to refresh the “attack” section, even once out of sight again, and I’m struggling to figure out what might be causing it. If anyone has any insight as to what I might’ve been doing wrong please help!

All the function the sight nodes are linking up to does is switch states, in case thats relevant too.

I have an image of the behavior tree itself too, but it won’t let me post that here as well.