Control of emotions is one of the basic skills you need to be a winning poker player. Even people like Phil Hellmuth who blow up on camera whenever they lose a hand, still don't let it effect their play.
It is essential to master that feeling as quickly as possible, it is true that time will make you get used to it because they are situations that are experienced daily but if you wait for that you will surely have lost a lot so the best thing is to see what works for you. at the moment clear your mind, it can be music, a dessert that you have close at that moment, in cash stop playing at that moment, if it is a tournament, try to calm yourself with something like what I mentioned