I never realised this wasn't a reasonably well recognised problem. Goes to show...
Back in the day (i.e. Early/mid-1990's?), I messed around with those single chip processors with the glass windows. For those late to this party, the program data stored in those chips was erased with UV light. You can see where this is heading...
So, here I am, with my Philips 87C552 (really expensive!) multipin processor, doing the development, in-circuit emulator plugged in, cables up the kazoo across the bench and into the dev board, and I get the bright idea to take a photo. Naturally, working in the Dark Cave of Engineering Development, I used the flash.
Darn me if I didn't get that sucker to reset every single time I took a photo.
Solution was equally simple. Just added one of those paper stick-on dots from the stationary cupboard right on top of the chip window. The red and green ones seemed to work just fine. That got added to the first spin BOM. Later ones were (marginally) cheaper OTP devices and didn't need it, IIRC...
New Golden Rule: Don't flash near your dev board. Is that a moral directive?