Hello Stephen Gray,
Thanks for reaching out!
This error message "CompactToken parsing failed with error code: 80049217" generally occurs when the token used is invalid.
Please refer to the similar post:
- https://learn.microsoft.com/en-us/answers/questions/1188446/compacttoken-parsing-failed-with-error-code-800492
- https://learn.microsoft.com/en-us/answers/questions/1190211/c-onedrive-upload-client-error-compacttoken-parsin
Hope this helps. If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have further questions about this answer, please click "Comment"