ItsIt looks like an existinga known issue and you can find the solution here in this link.
https://support.sitecore.com/kb?id=kb_article_view&sysparm_article=KB1002165
The root cause of this issue is that all queries that start from the query: or local: prefix lead to generating the query to Solr. However, a request to the index during resolving the data source for the SXA component must not be sent.
You can find this in this article.
https://support.sitecore.com/kb?id=kb_article_view&sysparm_article=KB1002165
For Sitecore XP 9.0.2
, download and install the patch compatible with the affected Sitecore XP and SXA product version found on this page:
https://github.com/SitecoreSupport/Sitecore.Support.368851.373937/releases