[UE4, C++] AI Sight Perception problem - Enemy won't detect player and is trying to go outside the map!

Although I’m an experienced c++ developer I don’t have enough UE experience to help you out only by looking at the c++ code.
I would probably need the complete UE project so I could test and debug, in order to check was is going on.