The shrimp would only be responsible if they introduced something (disease), not by any physical issue or so I would think. The sudden death of th cardinals (new) might be the same, brtinging disease that spread to the cories. The cardinals themselves might be weak fish, but unless that is some pathogen that spread, not in itself likely to have killed the cories.
You mention high pH...when posting about an issue, always give test results for as many factors as you can. None of us knows what "high pH " might actually be...in my soft and acidic water tanks a "high pH" would be anything above 6.5 but that is very low to someone with a normal basic pH of say 7.5 or 8. The pH is important, but so is the GH, do you know that? What is the temperature?
The ammonia and nitrite at zero is good. Nitrate at 20 ppm is close to being high but should not kill so fast, but it is higher than I would want to see it for soft water fish like cories and cardinals. Is this normal? Is nitrate in the source water to begin with? If not, and this is solely occurring within the tank, the easy answer for this one issue is to do more substantial water changes. At least half the tank volume, up to 2/3, and once a week. If this does not lower it on a permanent basis, look at feeding (fish do not need anywhere close to the amount of food all manufacturers will recommend, and missing a day or two or three each week is more benefit than harm (except fry which need more regular feeding). Of the stocking may be pushing things as these fish grow...mollies are not small fish and they do process a lot of waste since they are omnivorous with an appetite for green foods.
Is the substrate vacuumed at the W/C, or are there live plants? And is the filter kept well rinsed? The less organics that accumulate in the filter and substrate, the less ammonia to nitrite to end up as nitrate.
BTW, livebearers must have hardish water, mollies particularly. If they have been doing well, the GH may be OK for them (your number will confirm) but cardinals might find this too hard too rapidly. This caution is now for future fish, but again we need to know the GH and pH.