Make less your life about your work. It's so hard for some people, myself included to do that. But you need to do that!
Some people don't even want to work at all or work in a successful product or whatever. We created all those silly expectations for ourselves, often they aren't even our expectations but the expectations of others.
Those expectations, our desires often make us very miserable.
For instance, 90%+ of the people in the world would dream of living in Sweden, despite your bad outlook of the job market. It's all about perspective.
Of course, if you can afford, pay a psychologist. They may help you better to deal with your emotions and help you find out what you need.
Maybe try building something... if you want, hit me up, see my profile. But maybe first try to chill down and enjoy life a bit.