Update.
I have tried to create a new application but I am still encountering the same error. It means that the "Query widget" error is, at least, connected to my AGOL Organizational account (maybe, with the storage area where ESRI saves data uploaded on my account).
Who I have to contact for having this solved? The regional (Italy) ESRI office?