Between the other members, almost everything has been covered, so sorry in advance if I go over something already mentioned. As already said, this will have been caused most likely by stress and/or bad parameters. Regular water changes, monitoring, and live plants can help the latter, as well as...