Gold Orbs in Devil May Cry 5 is a resurrection orb. Whenever you die or run out of health, you will have an option on how you want to continue the game. If you have enough Red Orbs, you can use that otherwise you will be using a Gold Orb to get you back in shape.

Source: N4G PC Devil May Cry 5 Guide – How to get a lot of Gold Orbs