If you have admin, you could create a Mail Flow Rule that tells exchange:
"Never mark incoming email as spam" (for all messages, or for a specific mailbox).
This would send all emails to the inbox folder regardless of if they would usually be classed as spam.
Steps:
Go to Exchange Admin Center (https://admin.exchange.microsoft.com/)
Mail Flow → Rules → + Add a rule
Name: "[Whatever you want]"
Condition: Apply to all messages (or specific users)
Action: Set the spam confidence level (SCL) to -1 (means “not spam”)
Save
This may not be helpful, as it does not change your code, but it is functional. I hope it does help though. ^_^