Sorry, but is the consumer that asks for refreshing dependencies, or is the theme that needs to refresh dependencies?
Either way, this seems like a circular reference problem.
What's your platform version?
If it is 10 or below, any reference inside the theme for consumers will cause this problem.
If it is version 11, any string dependency (like server actions) will cause the same.
Cheers