I think I now know why the material turns black. I had Nanite enabled in the Landscape, and when I deactivate it, it no longer causes problems. When I save, the material stays the same.