As you can see the knockback only goes 1 way (custom class that extends Human) but I haven't touched to the KB.
it seems like your movement motion is active while the entity is being knocked back, also, it looked like there are no checks to apply KB depending if the entity's attackTime or noDamageTicks is above 0