After some period of time after login (~2-3 weeks) cross-wiki API requests with a CSRF token start failing for certain projects while other projects work just fine. It's hard to replicate consistently, as it's not clear what the cause of this problem is. Only logging out and logging back in helps.
Currently I experience this problem with requests to Wikidata. For example, I can't unwatch pages in Global Watchlist from Wikidata:
(x-request-id: 1f36c326-e66a-480b-9869-d5e9e1a6749d)
And looks like before sending the watch request it successfully receives a fresh watch token, so this is not a problem with an expired token itself:
(x-request-id: 11377ef2-c3c0-4d67-b815-8ae6eaedee51)
Other information:
MediaWiki 1.47.0-wmf.18 / Windows 11 Pro 25H2 / Firefox 155.0.1

