Collabora not opening for editing but instead downloads file to computer

When I try to edit a .docx or any other office file on nextcloud instead of opening in the browser for editing the file is being downloaded. This is only happening on my computer which is running windows 11 and not on other devices and other computers (2 windows 10 pcs, android tablets and ipad).

I have tried looking into my browser settings but they are the same as on other computers. Can any one help? I am not sure where I can start to resolve the issue.