Ward clustering-Too few clusters bug

I have raised a ValueError when too few clusters are formed in Ward Clustering.