The best way to go is with stacked photo diodes, to count many more cosmic gamma ray events, and also measure their mass.
Cosmic or gamma rays are damaging to human cells if they hit them. Swallowing an alpha particle is much more dangerous. Only the Russian secret service have allegedly more knowledge of this with ingested radioactive alpha particle material in the human digestive tract.
We are exposed to many gamma rays each day on Earth, they are tiny and of background radiation and hit fewer organic cells. Going into a higher field of gamma rays will lead to extreme cell damage and quick death. Like those men cleaning up after the Chernobyl accident.
Gamma rays have mass, so they are a particle? Duality again. The Pi camera will measure gamma rays, but how would you detect the difference between photons and so called gamma rays? You would need I guess to block photons from the Pi camera lens. ie with a thin metal layer over the sensor. ie gold to block the bigger particles like alpha and beta. or maybe aluminium foil at least

Gamma rays or particles have high energy, so they can penetrate more so called solid substances including cells., and often hit a cell and damage it. Like Xrays or radio therapy to kill cancer cells.