Improved GRAVITY astrometric accuracy from modeling optical aberrations