Terrain material not compiling

I have been working on a basic terrain, and I was painting for about on hour with no problems. However, parts of my terrain stopped compiling after painting them. Edit: Well after some experimenting, I have traced the problem back to my terrain material. However, I just don’t know what is wrong with it. It has been working perfectly fine for a while. I posted a picture of my material setup.

I see alot of textures, maybe this ( Max layers exceeded, but I do have less than 16 - Rendering - Epic Developer Community Forums - accepted answer ) is the problem?