Any sudden behavior change like this is call for a vet visit. Pain or thyroid problems could contribute to things like stability or comfort around other dogs, or even directly cause hormonal changes that impact behavior. I'd bring this to my vet and rule out physical causes before I assumed this was something that could be handled with training, if it were me.