Hi @Hasan Reza ,
Could you clarify which GUID you are using?
Based on you description, I tried testing in my lab tenant using ExchangeGuid and GUID, both can work properly :
In order to help narrow down, please double check if you are using the correct Guid value for the script. You can also try manually running the following command using the guid and see if it works:
Get-MailboxStatistics -Identity <Guid> | select totalitemsize
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.