RIS-Aided Localization Under Pixel Failures