If your dog's excessive licking gets intense at night, it could be because of their recent dinner.
Their food might be causing an upset stomach.
Or, it may be many hours after they have eaten, if the licking is caused by hunger.
Some dogs seem to suckle at blankets at night like a puppy at a teat.