Too many opengl program count make link failure

Hello, I'm working on mobile game industry.

We are suffering from opengl link program failure.....

I think this is because of too many opengl program count.

If we applied lru cache for shader count, the problem was gone...

I wanna know "Limit of program(compiled shader) count is determined based on memory usage at the time?" 

And "Can too many program(compiled shader) count impact to other gpu resource like texture, constant buffer...? ( Memory size that compiled shader takes up is fixed?? )"