You could use the following url as a workaround:
ms-word:ofe|u|https://xxx.sharepoint.com/sites/xxx/xxx/xx.docx
Per my test, you could open this word document in local desktop word application directly when you use IE. But you will get "A website wants to open this application." prompte when you open this url with chrome or edge.
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.