Trying to understand the relationship between upload template action and the error you have seen in logs, so the error is related to a sync issue between NiFi Flow and NiFi Regsitry Version control and is not related to uploading template in NiFi UI
Are you this error only appear when you try uploading templates in NiFi UI ?
Just to discard the error here can you please check in NiFi UI search for component with id b2b33551-8e13-1429-bd99-94bc96edf954 and see if get any component listed in search results and verify the status of that component with version control.
Now the 2nd point, is when you see unable to upload message box
Is this nifi service is secure? then you can check in nifi-user.log for any events with your username after template uplod action
Check if any timeout related message reported in nifi-app.log after template upload action?
how big template is ?
Can you please try with very small template ?
The above action items can help isolate the issue further.
Thank You