There is no solution. It's an intractable problem. Violent conflicts between ethnic / sectarian / tribal groups have been a constant in that region for millennia. The only periods of (relative) peace have come when an external hegemon comes in and conquers everyone, and none of the current superpowers have any interest in doing that. Everyone will keep wringing their hands and nothing will really change. It's terrible but that's the reality.