Ramanujan died early. He is another one which comes to mind.
[1] https://www.maths.tcd.ie/pub/HistMath/People/Riemann/Geom/WK...
Bullets with rifling came about circa 1820 (ish) but were not widespread by 1832 and traditional dueling pistols remained the norm for quite some time, the element of chance likely factored in as part of the hand of god influencing outcomes.
https://en.wikipedia.org/wiki/Duelling_pistol
For some in the eighteenth century, duelling with less-accurate, smooth-bore weapons was preferred as they viewed it as allowing the judgement of God to take a role in deciding the outcome of the encounter.
There's not a lot of detail regarding the duel of Galois, his opponent isn't known for certain, nor the precise reasons, let alone the type of guns and ammunition used.