not all the files support digital signing
mostly applications and documents are digitally signed to be recognized by the system
https://www.adobe.com/acrobat/business/hub/common-file-types-you-can-esign.html
you can check event viewer to see the errors definition
https://learn.microsoft.com/en-us/windows/msix/package/signing-known-issues