This error might have to do with codecs, perhaps is missing windows feature called “Media Feature Pack” because you have a Windows N (or KN) version.
If you have Windows 10 you should go to Settings > Apps&Features > Optional Features > Add a Feature then add Media Feature Pack.
Or install if you have Windows 10 this: https://support.microsoft.com/en-us/help/4475817/media-feature-pack-for-windows-10-n-may-2019
Or install if you have Windows 8 this: https://support.microsoft.com/en-us/help/2929699/media-feature-pack-for-windows-8-1-n-and-windows-8-1-kn-editions-april
Or install if you have Windows 7 this: https://support.microsoft.com/en-us/help/968211/description-of-the-windows-media-feature-pack-for-windows-7-n-and-for
After installation, you must restart your computer.