Do they appear to have a brown jelly-like substance on the heads? If they're infected with brown jelly disease, you'll need to frag off the infected heads to prevent it from spreading to the other branches. That still doesn't explain the other problems you've had, but if you've curbed the issue (assuming it had to to do with your Mg levels) and you're still losing your euphyllia, this could be the problem.