Dogs can bite their nails as part of the grooming process, especially if their nails are very long and uncomfortable. However, they tend to bite more for medical reasons, like allergies, a skin condition or infection, or even anxiety.
It's not particularly safe for dogs to nibble on their feet because they can make any existing problems, whether allergies or anxiety, worse. "It's usually a sign of discomfort
Make sure your dog gets regular grooming and nail clipping, and ensure their paws and nails are clean and washed. "Simple things like rinsing their feet off when they come inside, in case there are any pollens that are annoying them, can be super helpful