There’s a somewhat similar idea in Ted Chiang’s story “What’s Expected of Us,” in his book Exhalation. The premise is the discovery/invention of a device with a button that’s connected to an LED, but the LED flashes before you press the button, based on a signal from the future. The implications of this device ripple out to have catastrophic effects on the world, as some people are driven to suicide by the realization that there’s no free will, and others just fall into depression, believing that nothing they do matters. The conclusion seems similar here: we’re so much better off not knowing.