I encountered the same issue when using the module. I ended up disabling the module for node "add/create" pages, because even if I fix the issue, the "Generate references with AI" button did not work for me. The module works fine on the "edit" pages of nodes. I think that generally the module won't work on the "add/create" node pages, because it redirects you which would then lose all of your progress. So as a temporary solution, you can use this patch to disable the module entirely on new nodes and use it once the node has been saved/created.
marie77e → credited Todor Nikolov → .
marie77e → credited Todor Nikolov → .
marie77e → credited Todor Nikolov → .