I doubt engine flush caused that. Even just changing the oil could cause that to happen.
Once the fresh oil is circulating it will dislodge all the crap.
That was down to lack of maintenance.
If your engine has that much build of crap in, then its only a matter of time till it goes bang.