Hello TimGowen,
Not sure exactly how you plan to use the wim to repair (maybe you can provide your expected actions), but I would recommend you:
Cleanup WinSxS folder: https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/clean-up-the-winsxs-folder?view=windows-11
Run an image repair:
https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/repair-a-windows-image?view=windows-11
-------------------------------------------------------------------------------------------------------------------
--If the reply is helpful, please Upvote and Accept as answer--