path tracing shadows problem

Maybe it is a problem with the geometry in Nanite. Try the following console command:
r.RayTracing.Nanite.Mode 1