Functional earthing can be done with a crimp lug on the cable + a stainless bolt + a stainless star washer (+ flat washers if needed).
The star washer is a must - it's to break the anodizing & get a good connection.
If you only drill the rail at the end ie past the mount & panel clamps, you don't affect it structurally.
You could drill the single flat parts, eg top right lip or bottom right lip.