As the others had said your toilet should not overflow unless there is a blockage in the drain. Possibly a venting problem?
I had a flapper that was ruined by a bleach tab. Wife put it in there to keep the toilet clean but in a month or 2 it was leaking. There appeared to be nothing wrong with the old one but a new flap and no bleach tab cured it.