How big is the tank? What are the exact parameters?
My guess is that pH down your adding. Does more harm than good because not only does it cause sudden pH swings but also has toxic chemicals in it that are harmful to fish.
Also, x-ray tetras need to be in schools so that's definitely a contributing factor.
"If you're not making mistakes, then you're not doing anything. I'm positive that a doer makes mistakes."