As per all the other comments below, I'm having the same issue, bt mine is related to open STL or 3mf files with 3D Builder.
What I have found is that this error only pops up if the files are in a folder or any other drive.
If I dump the file direct to the desktop, it opens no problem.
Another workaround, albeit a long one is:
Right click the file
Open With...
Choose another App...
Then tick the box at the bottom to Always use this app...
But you have to do this every time!
These issues only started after the last big update a few weeks back for Windows 11...
Hope there is a simple fix for this as this is really annoying...
******************EDIT AND MY FIX*********************
OK, I tried the most basic of solution, I removed the app, reinstalled the app and it looks to be working fine for now!
Should anything change, you guys will be the first to know!