Lately, I have had some time to myself and I've reflected on my past actions, hoping to gain more self knowledge and I realised I had a reoccurring problem.

My issue is that when I get into a stressful situation, e.g. when talking to people I'm uncomfortable with, I switch to a mode where my brain just can't think as well and I do some things I didn't intentionally plan to. After the situation is over, I become normal again and I start to regret my actions while I wasn't able to think as well. (Feels a bit like stage fright but I'm more easily affected I guess)

One example where my problem affected me was when I'm doing my job. I'm currently in compulsory military enlistment and I'm working as security at one of the camps in my country. My job is quite mundane as my health condition made me unable be fit for any physically strenuous duties. My job includes checking camp passes and seeing if their face matches, checking that car cameras are off, making sure that masks are worn... and other normal military security stuff.
However, most of the time when a car or a person approaches me, my brain switches and the only thing I would do is to check their passes(most important thing I've remembered) and would skip the other steps as my brain just couldn't think or remember anything.

Hopefully, nothing major has happened while I am on duty yet but I find it alarming that one day, this problem of mine will lead to a breach in my camp's security.

Having said this, has anyone had a similar problem and should I voice out my problem to my superiors and change my vocation? I'm willing to answer any questions as much as I can.