It's fairly straightforward — you need to collect a large batch of the secret Precursor eggs. Get roughly fifty of them and the invulnerability reward is yours.
They're scattered across the levels and hidden in the harder-to-reach spots, so it's a completionist task rather than a puzzle. If you've been playing through normally, you're probably closer than you think.