The letter comes weeks before Musk is set to face off in a trial against OpenAI and Microsoft over alleged betrayal of its founding non-profit mission.