Panic attacks can occur in any situation. Often, the thoughts that produce panic attacks are subconscious.