A Stable Generalized Finite Element Method Coupled with Deep Neural Network for Interface Problems with Discontinuities