Pawn sensing problem that I have no idea how to fix

It keeps chasing you because you didn’t set the Actor target to Null when the target is not in sight, I would assume that’s the issue, for the first problem I would just print a message when a target is found to see if that’s the issue or your AI tree.