Mesh distance fields on planes

I tried two sided right now, I updated the original post with a picture of the result. The artifact disappears, but the shadows become funny. I’m afraid I won’t be able to use MDF for this project.

Have you got any suggestion about a possible alternative? I have cascade dynamic shadows for everything close to the camera, but I needed DF for objects at more than 40/50 meters from the player.