First of all, stop being stressed. This is fixable with patience and thinking.
Have you tried any of the things that will bulk up the dogs stools? I have a small dog who, for some reason, her anal glands don’t express properly when she “goes”.
I give her “No Scoot” which I get from my vet, they are little treat looking/tasting things that bulk up her stool which helps things move along. You can also add fiber to the dogs diet in the form of cooked oatmeal, canned pumpkin, cooked squash or other veges (check the list of foods that aren’t recommended for dogs) to bulk up the stool.
You can also simply calendar routine expressing of the dogs anal glands.
I have a friend who does her own dogs glands about every two weeks because they don’t express properly. DON”T DO THIS without having your vet show you how. Don’t force anything, you could injure the dog and for some dogs, like one I had years ago, her glands were in a little awkward area and were challenging to express, so for that dogs, my vet recommended I NOT try this at home.
I have had a number of dogs over the last 30 years, sometimes as many as five at a time. Of all my dogs I’ve had three that had anal gland issues more than once, two have had to have active monitoring. One of those dogs I have now. I keep an eye on her behavior and if it looks like she might be having an anal gland issue, I take her to my vet for a tech visit to have them expressed - at my vet this visit is only $15-20.
It seems to me that if the second dog is starting to have this same issue, it is something in their food or environment, as anal gland issues are not contagious.
I try to avoid antibiotics (for both me and the dogs, although sometimes they are necessary) as they also kill good gut flora. You may want to consider probiotics to rebuild the gut flora.