Haven’t tested this but maybe you could use static lightning to create the shadow, build the lightning and then on begin play or whatever set the mesh hidden through code or blueprint. The shadow should not disappear. Of course, this would not work with a moving shadow.
But again, I’m not sure if it would work.