Of course you get rewards even if you die, only requirement is for boss to die and in raids its way easier than in advent (even there if you die along with boss it still counts as your win)
I believe only if you "give up" then you won't get rewards. In that case if boss kills you instead of giving up just return to main page.