The loss of a job always leads to a nervous state, especially if the dismissal happened suddenly. The problem cannot go away absolutely painlessly, but everyone can weaken the nervous shock.
The first emotion that arises after being fired is rage. First, you get angry with your boss, then you start to worry that you will no longer be lucky with adequate leadership, and the information about the dismissal will remain in your work book.
Don't take on the image of a poor lamb. Better find out about the reason for your dismissal and ask to pay everything that is due to you under the law. Take all the money even if you have additional income.
Do not blame the management for injustice and do not threaten with violence. Negotiate calmly, referring to excerpts from the law. If you break out and raise your voice at the head, then rest assured that you will not get good recommendations. This is especially important if you decide to work in the same profession. The new boss will probably want to know about your success in your previous job.
When all emotions have subsided, analyze the situation. Perhaps you yourself wanted to leave, but were afraid that you would be left without work. Evaluate the situation as a door to new opportunities. Now you have two choices. You are either applying to a new organization, or you are mastering another profession that suits you better.