Is that just white skeleton on the outside? Should have flesh down around the outside but looks like it is gone and only the newly exposed white skeleton is showing. If so this is not good.
What kind of flatworms came off? Have a picture? There are some that eat Euphyllia. And as noted by others. Post your parameters, how long you have had it, light and light settings etc.