First off is there something special in the G65 macro that you need to use it and a standard canned cycle would not work?? Typically I have never seen a macro set up to drill just 1hole unless there was something really unique to that hole.
Anyway if you need to use the macro you can do a macro modal call (G66) and put in all your locations and you won’t have to keep inserting the G65 line. It should look like this.
X1.Y1.—first hole location
X1.8Y1.96---second hole location
…----------put all 51 locations 1 after another.
I am not sure what your control can handle but give it a shot.