Stability results for local zeta functions of groups and related structures