Sometimes you just need to against the easy option.
Panic is really easy to do. A moment of stress or overwhelm often ends in panic when you don’t know how to handle the situation.
If you find yourself panicking in these situations often, it’ll eventually become a habit. Even when you can handle the situation if you give yourself patience, once you get used to going into panic mode it’ll end up happening at any opportunity.
So, you have to teach yourself not to panic.
It mainly takes patience but you also have to be able to catch yourself in the moment before you start to freak out.
You have to remind yourself that the situation isn’t too much for you and that you’re capable of coming up with a solution.