issue with shadows

Hi there!

I have a weird issue with shadows. They often dissappears from the objects.
no_shadows.PNG
And they appear if I move the objects a little.

Also it most of the time happens with foliage items.
foliage_shadows.PNG
Shadows are either missing or deformed.

What is the problem?