Try using checkMemberGroup. See https://learn.microsoft.com/en-us/graph/api/directoryobject-checkmembergroups?view=graph-rest-1.0&tabs=http for details and examples.
The other way you can do this is using advanced query capabilities (https://learn.microsoft.com/en-us/graph/aad-advanced-queries?context=graph%2Fapi%2F1.0&view=graph-rest-1.0):
GET https://graph.microsoft.com/v1.0/me/memberOf?$filter=id in ('{id1}','{id2}','{id3}')&$count=true
ConsistencyLevel: eventual
NOTE the HTTP header...
Hope this helps,
Dan