Teleport AI to nav mesh

Hello, I am a newish Ue5 dev and I am running into a major issue. I have a game where part of it is in a maze and the enemy teleports in a circle around the player before they charge them. However as I make this section i realize the enemy can spawn out side of the maze and nav mesh. So I was wondering if anyone knows how to detect if their is a navmesh available before teleporting a character