This is the key question. Even if nuclear is made ultra safe, a single bad event (which is likely if we build hundreds of thousands of reactors world wide) can raise so much paranoia that future investments in nuclear can be affected.
I have no idea how you could solve a problem like this.