If someone during jama’at faints or dies next to you while praying are you then allowed to break your prayer to help or do you have to finish your prayer first?

If you knew that he died, there is no meaning for breaking your prayer.
Yes, if for example he had a heart attack, and needs relief, that saves his life, then you have to break your prayer, and help him.