What happens when I die or go back to the Void ship?

Per the devs,

What items are kept or lost when I die? You lose all ammo, food, fuel, merits, torpedoes and warp keys when you die, however, you will keep all parts, materials and upgrades you have built on the workbench. Note that if you die while on board a ship you lose anything you picked up in that ship too.