It happens still in 5.1, these settings together with hair shadow density seems to have fixed that shadow flickering issue.