In the respawn screen damage is reported to be coming from seemingly random heroes, including teammates' abilities. See screenshot wherein I apparently took damage from my friendly Apollo in the horizontal bars, but the vertical bars indicate only damage from enemies (as expected).