Depends on the root cause.
- Are you hiring senior people or juniors?
- How good are the managers?
- Are you able to get people to buy in on the need for consistency?
- Are you micro-managing it or are you delegating?
Usually the problems start at the top, so that's where I would start looking for solutions. A really good coach for your CTO if they're not very experienced would be a nice start.