The root causes of these could be
1. The type of water that we use. Some types of water cause scaling.
2. It might be that all pieces of the machine are not properly seated.
To prevent these happening there are couple of steps:
1. To avoid calcium scaling inside the machine, use filtered water.
2. Ensure that the coffee maker is put together properly.