How to solve Z buffer artifacts
Short answer: Move your near clip plane further away.

Depth buffer precision is very sensitive to the near clip plane distance.

Complicated answer: Use different math in your view projection. There are a few techniques that can help, some of them are outlined here:

https://developer.nvidia.com/content/depth-precision-visualized