I made a Cosmic Ray detector once. It’s quite simple - it checks to see if a “bit” has been flipped from 1 to 0. It sounds stupid but actually works.

https://secretgeek.github.io/cosmic-ray-detector/index.html

Cosmic Ray Detector