I am concerned that should something like this happen nuclear powers might just decide to use "the window of opportunity"
I sincerely hope that ethics and the indomitable human spirit will emerge triumphant in those circumstances.
I think you are correct in the additional psychological analyses, no sober minded human would willingly fire a nuclear weapon when not forced to strategically, and the economic costs of becoming a pariah state are far too high for state A to even come to the conclusion that it’s worth it to destroy state B (see Russia becoming a pariah state in early 2022 and quickly becoming shut off from the world economy, even from traditional Allies).