Minecraft villagers won’t breed
Solution 1:
Villagers don't care about dropped items other than food, so the blocks won't affect your farm.
Villagers do, on the other hand, need to be happy in order to breed. Hitting them will lower their happiness, so in order to fix that, you will need to trade with them in order to raise it again.