Intune integration connection issue

When trying to connect to a Windows client through Intune quite ofte we get an error message saying "There was a problem using your TeamViewer account. Verify your TeamViewer license is active and supported for Intune." The TeamViewer connector is active connected in Intune."

Usually it works if we try a few moment later, but sometimes it last several hours.