Once you see nitrites, you should be adding enough ammonia to bring the ammonia levels to 2.5ppm instead of the 5ppm you should have begun with. The reason for cutting back once nitrites are present is because nitrite converting bacteria are much slower to colonize and are actually inhibited by really high levels of nitrite, so if you add half the ammonia you won't starve the ammonia converting colony and you won't overwhelm the nitrite converting colony as it's trying to form.
By the way, the ammonia is not likely to be what killed your plants, plants use ammonia as a nutrient.
By the way, the ammonia is not likely to be what killed your plants, plants use ammonia as a nutrient.