specifically the damage immunity clause "While on Defense and there are no Galactic Legends, whenever a New Republic ally takes damage before Adelphi Ranger's first turn, they dispel their debuffs, gain Damage Immunity until the end of that turn..."
the way this is phrased imply that there should only be one instance of damage dealt to Adelphi Ranger
however I have this footage right here showing that Adelphi Ranger still takes Torture damage when hit (and I think the same applies for Deathmark as well)
the same applies for like max health damage effects (like bleed, thermal detonators and I would assume Plague and Damage Over Time as well). In this footage the new republic team takes turns and gets damaged from bleed (a lot of instance of damage) and does not trigger the damage immunity
if it's too hard to fix then just give Adelphi Ranger team Grit (Grit is take reduced damage from max health damage effects)