Getting "insufficient system resources exist..." error every few hours

I’ve started getting “insufficient system resources exist to complete the requested service issues” error when trying to access networked mapped folders in Windows 10 Pro build 21H1, on MyCloud on firmware 5.17.107. The GUI is still accessible when the error happens, so I am able to login and reboot the MyCloud. It will work again for a few hours before the same thing happens again. I have an older MyCloud on fw v04.05.00-342, which doesn’t suffer from the same issues.

What can I do to prevent this happening?