I tried every possible setting. This problem is solved in 5.0.3 or 5.2 preview after I turn off Distance Field Shadows. The problem is that I already made a substancial progress in a project made in 5.1.1 and I don’t wan’t to use a preview version to continue, neither can I use an older version.
Should work in 5.1.1 as well.