A Statistical Study of Rapid Sunspot Structure Change Associated with Flares