With the console you can spawn in any item in the game. Including items that never spawn in the game itself but are in the code, such as a small hoverbike-style aircraft/spaceship thing. Seriously, that's in the game. Probably a leftover from something else. So if you know the ingame names of the stuff you lost you could spawn in copies of each item. The ingame names of everything are probably available online...
...found a list here:
https://www.reddit.com/r/valheim/comments/lig8ml/spawn_item_command_list/
So, for example, entering this command:
spawn ArmorBronzeChest
into the console will spawn a bronze chest armour on the ground in front of you. The same as any other L1 bronze chest armour, so if that's what you lost then you've effectively recovered it. You can upgrade the one you spawned - in every way it's the same as one you made. You could spawn in the materials needed for the upgrades, of course.
There are mods that give players choices regarding death. The ones that I know of are these:
Valheim Plus adds
many options to the game, including some entirely new things such as moving things you've built so you don't have to demolish and rebuild them just to move them. All the options can be changed at will in a simple and well commented config file. One of the options is the amount of skill loss on death, which you can change in 1% increments from default to zero.
Gravekeeper adds many choices regarding what (if any) of your inventory is kept on death. There are 20 toggleable options. You want to keep everything? You want to keep only what you're wearing? Only what you're wearing and consumables? Only your bow and your helmet? Only what's in your quickslots? Pretty much every "retain these items on death" possibility you can think of. It doesn't change the skill loss.
Safe Death retains everything on death. Your inventory remains the same, your skills remain the same.