Change PreviewAnyFile default file opening app

Hello.

When using PreviewAnyFile for the first time from my app, before opening the file, the system ask to use an application to open it (once or every time).

Depending of the file mime, several applications can be used. And some application doesn’t support some mime type.

My issue is when an application is set to be the default application that open file, this defaults application will be used to display all type of files.
If the file isn’t compatible for the app, once the app is opened, the app will enter in error.

I would like to know if their is a way to change this default applications once it’s set.

Regards.