Go to the Project Settings and go to the Navigation System category. Untick the Generate Navigation Only Around Navigation Invokers checkbox.

Then go to the Navigation Mesh category and scroll down to the Runtime section. Click the Runtime Generation dropdown and select Static. You may need to build the navigation after changing these settings.