Flakes often indicate a too high calcium content in the water. It is also possible that because the water is unbalanced, it releases lime.
To reduce the calcium content you can drain 20 to 25% of the swimming water and refresh it. Also check if there is deposited calcium on the electrolysis cell and clean it if necessary. Check regularly and correct the pH value, hardness and alkalinity if necessary.