To answer my own question and for the benefit of anyone else seeing this error, the issue was that I'd installed the Windows 11 Pro "N" version which doesn't include certain media codecs / dll files etc. You can fix this by installing the "Media Feature Pack" in the "Optional Features" section in Settings.