For anyone still experiencing this issue, I can confirm that @bengotow’s fix has been implemented in version 1.17.2: Remove origin header that causes problems with Office365 Oauth by bengotow · Pull Request #2579 · Foundry376/Mailspring · GitHub
All syncing again now! Thanks everyone for your help.