A problem with wrong shadows on a material!

Are you using raytracing? Perhaps you need to turn on “Evaluate World Position Offset in Ray Tracing” on the static mesh that is being deformed.