This look related to third-party cookie restrictions
Like explained on Chrome facilited testing, third-party cookie restrictions will be deployed as a preview for some chrome user.
It's looks like google tag manager is using the cookieDeprecationLabel JavaScript API in order to determine if the restriction is enabled.
try {
tc.cookieDeprecationLabel ? (a("pending"),
(0,
tc.cookieDeprecationLabel.getValue)().then(a)) : a("noapi")
} catch (b) {
a("error")
}
When the cookieDeprecationLabel JavaScript API is present google tag manager try to access to it's value which throw an TypeError: Illegal invocation
.
As told by @DarkBee an issue has already been opened on tagmanager's support.
If as a developer, you doesn't have the issue but want to check if your app is broken when it happen (like me) you can activate it following this google instructions Third party cookie Phase Out Facilitated Testing
[EDIT] August 12, 2024
As told by @bjarne-gerhardt-pedersen Here the issue seems to have been fixed by the GTM team.