That’s always been my theory. The perfect, sinless, all-holy God the Father could not look upon sin, and God the Son had taken the sins of the world upon Him, on the cross.
I think God the father, son and holy spirit were all one at Christ’s death, and all shared equal consciousness all at once. To the extend that the Godhood could have ceased to exist, it died there on the cross. Christ said he and the Father one...it didn’t stop being so one the cross. The ark angels who held up the throne must have strained with the grief of the father. The very elements were shaking, the skies were dark and the temple veil was ripped in two!
Christ wasn’t alone, so much the entire God head was sharing the pain of the loss of life.
When the human body itself approaches death, folks who are conscious of impending death are fearful, afraid of being alone, as the body’s flight or fight responses near exhaustion. Jesus was in the throes of such exhaustion and his cry was a human response...much like a loved one who is dying but is comforted by soothing words or a held hand. But never think he was totally alone! Christ was man and God but suffered a very human death. His cry was a natural emotional and physical response.
Yet at the very end...his final words weren’t “My God why have you forsaken me” but...”It is finished!”
Ditto!