The first option is a malfunctioning filter. That is why I recommend you to backwash the sand filter and then filter the water over a long period.
A properly functioning filter is very important for clear and healthy pool water. Choosing a high quality sand filter, for example from Pentair, is important. Because cartridge filters do not filter the water as well.