Hello,
Thank you for your question.
f the error 0x800f0954 occurs installing optional Windows features, it may be because the system is unable to access the Windows Update server. This is especially true in case of domain-joined computers which is configured to downloads updates from a WSUS server. It could also be possible that your computer was once a part or a corporate or domain network and the group policy setting is still in place.
We have a similar subject with a problem similar to this, I recommend that you consult it to better understand how to solve it, go to it on the link below:
https://learn.microsoft.com/en-us/answers/questions/112308/error-code-0x800f0954-on-windows-10.html
---------------------------------------------------------------------------------------------------------------------------
--If the reply is helpful, please Upvote and Accept as answer--