Microsoft365DSC delegates the authentication to the MSCloudLoginAssistn module. When this one tries to call connect-mggraph, if we are already connected it throws the following error:
Could not acquire access to file at 'C:\WINDOWS\system32\config\systemprofile.graph\GraphContext.json'. Please ensure you have access to this file and try again in a few minutes.