Annihilation of cohomology and strong generation of module categories