If you must have pitting, then have it as small, shallow, and far down the barrel as possible. Big, deep, and close to the chamber is, of course to be avoided.

A pit in a tube acts as a stress riser. "Big" increases the stress over a wide area - think bulge. "Deep" tends to a local failure - think fatigue crack. Close to the breach is higher pressure, but usually thicker metal.