Go to the BP_SmartAIComponent and create a new variable called DeadAICapsuleCollision and set its variable type to Name then tick Instance Editable and set the default value to DeadPlayer.

Then create another variable called DeadAIMeshCollision and set its variable type to Name then tick Instance Editable and set the default value to DeadPlayer.

Next create a new function called UpdateCapsuleCollision and add an input called Name and set the variable type to Name. Then copy the image below.

Next add the highlighted nodes like shown in the image below.