He didn't. The quotes in these tweets are fake. If I search for these quotes these tweets are the only results. Twitter is a hostile platform to reality as reality can get in the way of virality. Hence why you never see sources on twitter. This was likely written by someone with only a passing familiarity with gandhi's position on WWII who probably guessed at how he would speak based on his character in Civ.
What did gandhi actually think the Britiish should do in 1940? In his actual words:
I want you to fight Nazism without arms, or, if I am to retain the military terminology, with non-violent arms. I would like you to lay down the arms you have, as being useless for saving you or humanity. You will invite Herr Hitler and Signor Mussolini to take what they want of the countries you call your possessions. Let them take possession of your beautiful island, with your many beautiful buildings. You will give all these, but neither your souls, nor your minds. If these gentlemen choose to occupy your homes, you will vacate them. If they do not give you free passage out, you will allow yourself, man, woman and child, to be slaughtered, but you will refuse to owe allegiance to them.
Basically he was speaking for an extreme form of non-violent civil disobedience, not capitulation.
Also a famous gandhi quote: "Stop believing everything you see on twitter you gullible rube"
This is a type of ad hominem fallacy because you're downvoting based on something about the speaker that is unrelated to the argument. You might argue that there is a correlation between the misspellings and logical fallacies, but you offer no evidence, and the fact that you committed this phallusy while spelling everything correctly speaks otherwise.