Hello Thanks for reaching out. What error are your getting when retrieving an XLSM file via Graph. What URI are your using to retrieve the file? In my testing I was able to get and write contents to an XSLM file stored in OneDrive.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.
Thanks.