Unreal Engine 5.6 – Nanite Trees Painted with Foliage Tool Don't Cast Shadows When WPO Is Enabled

Hi, I checked this issue in versions 5.5 and 5.6 and did not encounter such a problem.
I tried to create this problem, and all that allowed me to do this were the console commands described above or the settings of the Ray Tracing Shadow renderer.
Could you provide more information, for example, screenshot of settings or a video?