create a condition that checks the return of the query to see if it is less than needed or null and accommodate appropriately, and in situations where i there is less i would create a move to behavior and make the acceptance radius larger than the collision shape so they move close to one of those points.
but flesh it out in blueprints then replicate it to c++ as it will create performance issues if you have lots of ai and/or lots of queries being performed