Unable to open file in browser or in an app

When I try opening the file in my team project, getting a message
“An error occurred while opening the editor”