located in your project Config folder, is a DefaultEngine.ini file. There is a line "RuntimeGeneration= ". When you switch the navmesh to static, it creates an invalid entry in this file. To fix it, you can leave it on Static and be able to build, “RuntimeGeneration=Static” . Others were having the same problem HERE