It is not always possible to prevent a panic attack, but the following tips may help: do breathing exercises every day. get regular exercise. follow a diet that is low in added sugar and eat regularly to avoid glucose spikes. avoid caffeine, smoking, and alcohol, as they may make anxiety worse. More items...