My bed rails rest on the metal. The paint shows a little rubbing but I prefer it tight.
I would think by leaving the gap, debris would get wedged underneath. Just like the junk between deck boards. Plus the rail helps distribute the weight of the rack.
I wonder if you could use a rubber cushion? Perhaps cut strips out of a horse stall mat?