Covariance Structure Behind Breaking of Ensemble Equivalence in Random Graphs