Effective Cowsik-Nori theorem for edge ideals