My dog gets what I call "licky lou" where she starts licking everything and won't stop, the only cure is to put her outside to eat grass, the vet said when they do that it's a sign of upset stomach. Is your dog on probiotics?
My dog was chronically ill for a while when she was 9 after eating recalled food for a while and I thought she was not long for this world and I put her on a probiotic and nutritional supplement called Dinovite and she turns 14 next month.
I also started taking her to acupuncture. Acupuncture works better on dogs than people, the results have been great. And CBD oil helped with her shitting the bed.