I had a communication hubsite with a group calendar webpart linking to a M365 group. And with a Forms webpart.
I unregistered the site as a hub, I switched my rootsite for the communicationsite and registered the new rootsite again as a hub.
Everything works perfectly except for the group calendar webpart and the Forms webpart.
I get the errors as shown in the image
I deleted both webparts, published the site again and created the webparts again.
When I edit the Group calendar webpart I get the error: "Couldn't get a list of groups."
When I edit the Forms webpart everything seems fine, until I hit Save and I still don't see the webpart after publishing.
The funny thing is that a visitor of the root site doesn't see the group calendar webpart, but sees the Forms webpart and is able to fill in the form successfully.