add another search to see in you can find the specific flatworm species you have and get an idea of what it eats
sounds like things have gotten out of control, so there is lots of whatever it is your flatworms eat in the tank, or was when they last reproduced to the extent you have now