Glass pitting is caused by debris like sand and dust crashing into the windshield and creating small craters. If the pitting is not severe, it can be repaired through auto glass repair. However, deep or close pits that may spread require windshield replacement. Polishing or sanding away pitting can compromise the glass's integrity and should be avoided.