Weird shading artifacts in Linux build

So I’ve cross-compiled my project for Linux and what I saw there was this:

These artifacts seem to only appear on spline meshes. And they are not static, they flicker like crazy. Applying different materials didn’t really change anything, the artifacts were still there. And in the Windows build everything is fine.

So what may cause this and how do I deal with it?

Thank you.