If you got hit by an ultra-high energy cosmic ray, would it likely kill you?
No, because, while the energy is high per individual particle, the particles are small and isolated.
It’s like getting hit by a bullet that is so much smaller than a grain of sand, that even if it’s moving at 2,000 feet per second…it doesn’t hurt. Cosmic ray particles may have billions of electron-volts of energy – but are still only tiny nuclear particles. Stand in front of an old-style cathode-ray-tube TV, and you’re getting a LOT more overall energy.
Except a single cosmic ray particle can cause a cascade and produce a shower of particles. And exposure to these high-energy particles can cause damage to your DNA and increase your chance of cancer. Or even cause radiation burns or other acute symptoms.
The most powerful cosmic ray can have energy of tens of Joules. If all that energy turned into ionized radiation and got absorbed by one person, it should be enough to kill that person through acute radiation poisoning. I’m pretty sure such perfect conversion & absorption is impossible, but I’m not sure what a realistic maximum would be.
Such extreme energy particles, or even the particles produced by their showers, tend to be extremely penetrating. Which means that they’ll mostly just pass right through you, depositing a very small fraction of their energy in you, and taking most of it right out the other side.