5.2 Foliage Issue

I just opened the same project in Unreal 5.2. earlier I was using 5.0.3 (skipped 5.1,as it was also very buggy ). There is a major bug when I paint foliage. It shows no raytracing shadow and normal shadows are shown when ray tracing is disabled.