Companions can die in Outer Worlds. Not on the lower difficulty settings – there, they just get knocked out, and after the battle is over, they're as good as new. However, if they're downed on Supernova difficulty, they die for real.