Every time I finish a project in each job I start getting fears of getting laid off, my work is such that maintenance is low and it could be handed off to another developer easily.
I had a bad experience in a past position, and I can not seem to get rid of this fear of it happening again.
The fears started as I was felt "Less Needed" in meetings, faced many "Hurry up changes", "Last moment changes" and other things. This would lead me into frenzied cycle of starting to look for a new jobs, leaving the current onem where I could learn more, and continue.
Recent: I was asked repeatedly about the delivery of one page of the website, which triggered a panic in me and I said X days. I worked fine under pressure, but next day as I was watching a tutorial video, my CEO popped up on my back and I cannot see who is coming behind me and startle me, asking me, "What is the video and if it is related work?" and I said, yes to which he wanted me to show him how.
The above kind of situation send me in panic and frenzy mode and my thoughts started racing again, and I started to panic.
The panic attack made it hard for me to explain things to the CEO, and I started to doubt myself. was I being unprofessional watching the video on how to implement something (yes, it was work related).
Another thing this did was make me feel as if I was being treated like a child, making me demonstrate how the video was related to my work, as if I were a child about to break something. I was very uncomfortable being put in the position where I had to demonstrate how what I was watching was related to my work.
How can I manage my stress and panic levels so that I am better to explain myself in the future, and keep this cycle from repeating itself?