When ray tracing is enabled, direction light gives artifacts between foreground objects and shadow areas.

Hello everyone!

When ray tracing is enabled, direction light creates artifacts between foreground objects and shadow areas. However, if I turn off raytracing in Direction Light, the white areas around the object disappear. Do you have any ideas on how I can fix that?

Unreal Engine 5.4.4
RTX 4090