I can't think of something from the Writings, besides maybe considering the Fire Tablet, and how an extremes can make us appreciate its antithesis.
I also heard of a man I believe whose arm or something had been bitten by a lion, and he actually came to believe in God after this because what he expected to be unimaginable horror was mitigated by the body responding to cut off what would otherwise have been such severe pain. See https://en.wikipedia.org/wiki/Gate_control_theory
for this pain "gate control" mechanism.
Of course, these potential built-in protections do not mean that we cannot experience (or that God is incapable of stopping) the deliberate torture of human beings by one another which stops shy of these mechanisms but can be even more agonizing, but even here too, the best we can do, I think, is take hope in a recompense in the next world when it is not found in this world. Even the Baha'i Writings admit though:
"...the trials of the innocent are indeed heartrending and constitute a mystery that the mind of man cannot fathom."
(Messages from the Universal House of Justice 1963-86, no. 425.2, p. 661)
See also http://bahai9.com/wiki/Suffering_of_the_innocent