Hi there @agustin.rodriguez welcome to the community, and thanks for the detailed description of your issue
I believe this is due to the fact that you are using the email claim which is restricted to interactive flows. You should be able to using something like userEmail or the like: