You can enable saving the tabs when closing Firefox.
It is on and has been for years but I still lose all my tabs regularly.
Is it because of Sync? Container Tabs? I don't know
If I'm not too mad next time, I will try to find out why I lose them but my instinct is to reopen right away the tabs that I need the most.
I'm surprised Valve hasn't pushed a condition about this in their contracts stating that they can get a Verified badge only if they agree to keep the Steamdeck as a supported platform.