The most likely cause is poor water quality.
Even if water looks crystal clear that doesn’t always mean it’s safe and healthy for your fish.
The main cause of poor water quality is a build-up of fish and plant waste. As these begin to rot and break-down they release toxic chemicals like ammonia, nitrite and nitrate and can also change the pH levels. Now the water is full of toxic chemicals, the fish become stressed out and get sick.
Your filter is meant to solve this problem as all the nice bacteria will breakdown the toxic chemicals, however if you have a new, immature or badly maintained filter then the toxins won’t breakdown quick enough, if at all.
Water quality problems are invisible so the only way you can monitor them is with regular use of water test kits.
If you make sure your fish have a stress free life, they will be able to fight off common diseases easily, just like we do when we have a cold.