Removing collected charges in a IC CMOS circuit exposed under a 30keV electron beam source
back in the early 90’s my boss indicated they used a UV EPROM with a lens to take a macro picture and it worked although not very well.

Similarity you make be correct to think that saturating the charges in a UVEPROM is like erasing a stuck pixel in your image sensor. As long as the polarity is the opposite to the charge or leakage voltage being detected, in theory it may work.
But if you flood it with too much energy, the voltage may breakdown, conduct more current and dissipate heat in a pixel.  I have used an SEM to burn pinholes in ceramic when focused for fun when examining ceramic HDD heads for 14” disk drives in the early ‘80’s like a nano arc welder. Then zooming out with charge clouds slowly migrating across the insulated surface from the macro view that looked like a fog rolling in under an ultra low vacuum.