It looks like your aquarium is kind of new, so that could be part of the problem. Even a small ammonia spike could be a problem for Cardinals. Having said that, Cardinals can be a bit tricky. Loosing a certain percentage, when stocking, isn't necessarily reflective of doing anything wrong. Once they get established, you shouldn't have a problem with them. The dead Cardinals themselves could be responsible for the ammonia, and nitrate spikes. Do your water change, and do more if you need to keep your nitrates down below 20ppm or so.