An Increased Rate of Large Flares at Intermediate Rotation Periods for Mid-to-late M Dwarfs