I don't believe 4f is going to blow your gun up though. Black powder only generates so much pressure.
Where people can run into trouble is when the pressure develops too fast in too short of a time-frame.
It takes time to bump up a projectile and get it moving from it's at-rest position. If the charge is releasing energy faster in that time frame because the charge is being fully consumed in less time, as it would be in a smaller versus larger grain size, the pressure is developed faster. The powder doesn't 'burn faster' but the powder's total time for complete conflagration is shorter and the development of peak pressure is faster.
Black powder of a given composition of materials and density, by mass, only contains a certain amount of potential energy.
Black powder is classified as a low explosive, but it is still an explosive material.
A high explosive would be categorized as such because it chemically converts all of it's stored potential heat energy instantaneously when detonated.
Black powder grain size regulates the speed at which it's potential energy is released. The total amount of potential energy available is regulated by the chemical composition of the powder and the density of manufacturing. Different wood = different charcoal = different energetics of composition. Greater density = greater potential energy in a smaller volume of space.
Smaller grain size develops it's peak pressure sooner because all of the potential energy is released sooner because the smaller grains are fully consumed sooner.
A faster rise in peak pressure is a more violent event.
By way of analogy, in a gasoline combustion engine if the fuel and air charge combusts too fast, the result is described as detonation (it explodes). Detonation blows holes in pistons. A lean air/fuel charge (less gasoline) burns hotter in a shorter period of time than a rich charge (more gasoline) and the faster build-up of heat and pressure from the hotter lean charge can cause the gasoline that has not yet burned to spontaneously combust all at once instead of linearly.
This sudden release of energy is very violent, and can cause damage even though the total amount of potential energy in a rich charge is greater than that of a lean charge it is the rapidity of the development of peak pressures that do the harm.