Loss Gradient Gaussian Width based Generalization and Optimization Guarantees