The Cosmic Egg will prevent any health loss when you're entering a Chaos Gate. However, if you have a preferred Keepsake to keep equipped (I prefer the Lucky Tooth or the Broken Spearpoint), you can offset the health loss with the effects of Chthonic Vitality, available to you through the Mirror of Night.