Currently, flashes and other single-frame events are not dealt with gracefully by PySceneDetect, although there is an open feature request for that:
https://github.com/Breakthrough/PySceneDetect/issues/35
(Disclaimer: I'm the author of PySceneDetect.)