Pathfinding kinda broken

When my npc tries to walk from one place to another and there is a mountain in the middle, it has the bright idea to climb up the sides of it instead of walking around it. Is there anything I can do apart from making a wall around it?

can you show me the code? i cant help without code

Its just the simplePath module with this

local path = SimplePath.new(animal, {AgentRadius = 5})

path:Run(targetCFrame.Position)

ive got the blocked and error in there as well. Probably worth mentioning its a custom character

can you show the full script of the pathfinding? it still doesnt give me details how to fix this