Two local things change how this behaves through the year, and they explain a fair amount of what owners describe as sudden digging.
In summer, a dog with a yard and not enough shade will dig itself somewhere cool. Bare earth a few inches down is markedly cooler than the surface, and a dog lying in a fresh scrape on a July afternoon has solved a problem rather than created one. If the holes are shallow, in shade, and your dog is lying in them, add real shade and cool water before you train anything. Very often that is the whole intervention.
In spring and autumn, the ground is soft and everything underneath it is active. Moles and voles are moving, the earth gives easily, and a dog that ignored the lawn all winter suddenly finds it interesting. Repeated holes in the same few spots almost always mean something is under there, and dealing with what is under there does more than any training will.
The fence line has its own seasonal pattern: soft ground makes escaping easier, so a barrier that held all winter can fail in March. It is worth walking the boundary after a wet spell rather than waiting to find out.
None of this makes digging harmless. It just means the plan should match the season, and a dog cooling itself does not need the same answer as a dog leaving.