A Restricted user has the capability to rename their own root folder which causes an infinite redirect because their user details aren't updated with the new folder name. I think the simplest solution would be to prevent Restricted users renaming their root folder.
Any advise on patching the rename function would be appreciated