1.16.1 NPE when clearing villager's BehaviorController

I am using Paper-133. I clearing villager pathfinders and behaviors with this https://pastebin.com/U7wTW7nT

And got error (in-game error not console) when do /kill @e[type=minecraft:villager]

So i tried to damage another spawned villager and got this error