According to Wikipedia, it’s not the plant itself that’s toxic, but rather a fungus that can infect the plant, much as ergot infected other grains.
Polish wikipedia says up to 86% of seeds carry it but without source. This paper [1] says 70% of 'wild populations' of related L. perenne, implies infection in darnel (L. temulentum) is also prevalent, but notes most populations have low frequency of infected individuals and then tries to explain that.
[1]: https://mivegec.ird.fr/images/stories/PDF_files/0250.pdf
p34 talks about its constituent properties. Crucially no one is quite sure what the exact active component is