Trigger warning: ugly considerations ahead.
I have not watched the footage of the NZ shooting. I just wanted to speak to some considerations that might drive sudden collapse. Mechanically, there's two things I'd point at:
First, a bullet wound to the heart itself, or close enough (see next point) can effectively be an off switch, in the sense that you're blowing out the hydraulic system feeding blood to the brain. Suddenly loss of flow and pressure means no oxygen getting supplied to the brain; when that happens, willpower and mindset don't mean anything.
Secondly, a rifle round tends to be moving at least twice the speed of a pistol round, bringing with it significantly more kinetic energy and hydrostatic shock, creating a much larger wound channel, more likely blowing out a critical system and/or delivering massive shock to various organs.