Let $f:\mathbb N \to \mathbb C$ be an arithmetic function. There are various ways to define what the Siegel–Walfisz (S–W) property is for $f(n)$. One simple way is that there exists some function $g(a,q)$ such that for every $q\leq Q(x)$ and $a$ coprime to $q$, one has $$ \sum_{n\leq x \atop n\equiv a \bmod q }f(n) =g(a,q) \left(\sum_{n\leq x \atop \gcd(n,q)=1 }f(n)\right)(1+o_{x\to\infty}(1) ) .$$ For example, in the case of primes, one can take $g(a,q)=1/\phi(q)$ and $q$ going all they way up to $$Q(x)= (\log x)^C$$ for any fixed constant $C>0$.
My question is whether there exists $f(n)$ for which $Q(x)$ cannot be taken as large as a power of $\log x$ but instead something like $\log \log x $, or even smaller?