Finiteness of Gorenstein injective dimension of modules