From a Christian perspective that was the purpose of the cross, Jesus paid the price for the sins of the world and redeemed those who believe. Not preaching here just stating my personal belief.I think in this case it was him facing his own demons, nothing to do with God, just his mind playing tricks from guilt of not forgiving people. If it was real none of us have any hope.