Some conditions on the homology groups of the Koszul complex