Enemies are still hitting me when playing death animation

Create a bool in your blueprint called IsDying or something like this and set it to true when the enemy dies and plays his death animation.
Check this variable before your enemy is attacking to make sure he is not in dying state.