I have had that recently on one website but it indicates a page that does not exist on my site just like your one. In my case it goes to ?ref=xranks.
I think this is just some web page out there referring to your website and Google is picking up on it. You then receive the Google search console error notification, but I wouldn’t lose any sleep over it.
At a push you could add some htaccess code like this:
Anything going to that link, including Google should then be redirected to the actual home page and bypass that referring link. Just change the code to reference your domain url.