Sorry to hear you lost your exosuit inventory due to a double death @mastercoordinates .
It’s been some time since this has happened to me but its always a difficult feeling, the last time I did this I went afk for what was supposed to be a min, which then turned into helping someone irl with some stuff, leaving me to forget about it; I died to the elements thrice over by the time I returned and that was that, no more inventory recover.
A second death will always result in graveyard loss, an intended design and about the only time the game truly punishes you outside of Permadeath modes.
All might not be lost just yet though, when you load into a game there are actually two save options if you then go into the options menu. You will see Autosave, and manual save. A manual save happens any time you get in or out of your ship. Your last manual save may be before the second death.
If all is truly lost, you can reclaim some lost time if you are playing on PC by way of a save editor, or if on console, I can give you some tips to get those items back quickly and avoid tragedy in the future.
Lets get the PC method out of the way first. There is some very handy save editor tools available to the community, if you feel cheated, you can “cheat” your progress back and gift yourself all the lost materials back into your inventory. Editing a save will not restrict you from earning in-game achievements if this is another reason you may not take this approach, HG don’t really care about players doing this like some other devs/games might so it does not disable achievements/trophies.
Another option is to go to the Anomaly/nexus; if you have a way to speak to players (cannot type on ps5 for some reason, so that would block that option) they are often very kind and will happily dump a bunch of resources into your inventory.
As for when you return from your break/hiatus, here’s some handy ways to get back that amount of resources and to insure yourself for any future loss. (a new update should be dropping in the next 2-3 weeks via tradition, so that might pull you back in sooner
)
Chromatic Metal is made from copper, cadmium, emeril, indium and Quartzite. One for each colour of star that you can find (yellow, red, green, blue, purple). Each one progressively gives you a better return ratio of Chromatic Metal. Even better yet, if it’s the activated variant of these minerals, you get tonnes more.
Oxygen eventually becomes a resource you won’t need that much, and if you get a stack of phospohorus, this can fuel most of the things you need to recharge, and it uses a lot less than carbon or condensed carbon, thus freeing those resources up for a better purpose.
In particular, each biome has a unique resource that will charge your life support/multitool/ starship better than their base elements. E.g phosphorus for mining tool and life support systems, pyrite for starship jump engines and so on.
You can build oxygen extractors on planets that will passively farm oxygen for you also.
For the ammunition, search for systems that have the Mercenaries guild. Guilds are spread around regions in space, so if you find one mercenaries guild, every other space station in that region (region name is viewed on galactic map by expanding system details) will be Mercenary Guild.
You can get 2500 FREE ammunition from a mercenary guild envoy once your rep with them is up a few levels. You will be swimming in more ammo than you know what to do with.
To prevent future loss of all items on death, the key is to turn your freighter into a floating cargo box. There is an upgrade you can get for the freighter, called the interstellar matter transporter. This is one of the best upgrades in the game, it will pull items from your freighter without needing to transfer them into you inventory once the freighter is summoned in the system. You can also access your storage containers from the inventory menu wherever you are once have it summoned in system and have built storage containers on your freighter. You will be able to see them when you tab to your freighter inventory, and then you can use the d-pad to cycle through your storage containers.
Any time you need to reload, refill, build a base item, if its not in your exosuit inventory, the game will automatically pull from your freighter storage. When you reach this point you can just keep a small amount of waht you need in your exosuit and let the freighter hold the bulk of it. This will lessen the impact and hurt of a double-death should it occur again.
I understand needing time off from a game after major progress loss like this, my heart truly goes out to you and fortunately us gamers are never short of other games to play while the hurt heals 
Edit:
I forgot about the other method, and that is the kindness of strangers on a forum.
If you want, I can join your game and gift you some stacks of basic resources, get you back on the horse.
Send me a PM if this sounds like something you’re comfortable doing and I will send you my friend code, I’m on most days and would be happy to throw you some stacks.
Oh theres also the NMS taxi item thing. Works on all platforms, you put in a request on a website and a computer controlled character finds you in the nexus and gives you the item. I’ve never done this but have heard of others using it. Some guy coded it and frankly it sounds ridiculous to me that it even works.
According to google
Access: Join the NMS Service Bot Discord
-
Requesting: Navigate to the proper channel on Discord and use the command /request_uplink or similar commands to request items, such as eggs or ships.
-
Delivery: Ensure you are in the Space Anomaly with multiplayer and crossplay enabled to receive the item from the bot.
Limitations: Requests are often limited to one per person, and requesting a new item may cancel previous pending requests