This is because users can only access their own userrole. Thus when returning a role a user isn't allowed to see/use you get these errors.
I do have a few concerns
1. Why do you use a nanoflow
2. Why do need the userrole, as buttons will be visible or not depending access right on pages, microflows and nanoflows. Thus out of the box available.