during the pain arc when naruto confronted nagato,when nagato was reviving the dead shinobis the reason he died was because he had little chakra left from controlling the six paths thereby straining his body to the point he had white hair(this was because he was an uzumaki) and we knw that only ppl with senju/uzumaki cells can use the rinnegan,so since almost half of obito's body is senju,if he revives madara he will not die provided he has enough chakra.
Thanks for reading.
Thanks for reading.