The idea that the US has lots of mass shooting because of the death penalty (or the reverse for Norway) seems unlikely.
They're at like 20x the US for 2009-2015. Even if you do the total rehabilitative 20 years or so of data they're at least 4x worse than the US in per capita mass shooting.
https://worldpopulationreview.com/country-rankings/mass-shoo...