This article explains how to call the Graph API manually to verify group information.
This is based on how Qlik Sense SaaS code is fetching groups from Azure AD.
Qlik Sense for Windows straightly reads the groups from the ID token and if the number is too big, Azure AD will just include a link to the graph API in the ID token, which Qlik Sense for Windows will just ignore.