You should watch one of Larry Vicker's more popular YouTube videos, which shows the inner workings of an AR platform. Most is shot in super slow motion, and that amzing thing to me was how much a barrel wobbles as the bullet makes it way down and out of the barrel. During that violent few mico-seconds or a shot being fired, you might ding the rail.
Another, larger concern could be heat. On purpose of the open slots in the rail is to help air cool the barrel. A suppressor gets hotter than a barrel because it is much thinner in construction. This is one reason you see suppressors way out beyond the barrel rail. You want the suppressor to both stay away from heating other metal parts, and also get access to air cooling faster.