Shadows artifacts. Help me figure it out, please!

Hi all! Help me figure out shadows in Lumen. At the border with objects, the shadow appears as if it is illuminated. These artifacts are displayed in the viewport and on the render. What settings should I look at?