Strange graphics glitch?

I have a plane with a water material beneath my terrain so that pits in the terrain look like they are filled with water. However, when I move the camera far enough the water starts to show through the terrain where it shouldn’t. Also, when I’m close to the water’s edge and move the camera the edge jitters strangely. Does this have something to do with z-sorting? How do I fix this?

Thanks in advance.

Hey, changing the near clipping plane from 0.01 to the default 0.3 worked. Thanks! However, these areas still show in the editor. Is there a way to adjust the settings of the editor camera?