If you had dreamed of any epidemic, ask yourself if there is currently one on-going in your country. Your thoughts and emotions during the day has triggered this dream.
If your health has been weak, for any reason, then you will feel vulnerable. When there is a major health epidemic, you tend to have fears and anxieties. You may dream of the epidemic because during your day, your thoughts and emotions focused on the epidemic.