Fix Unsupported video type or invalid file path error in Windows 11/10