The GINN framework: a stochastic QED correspondence for stability and chaos in deep neural networks