I think you're counting all casualties caused by Central Powers as a consequence of Germany's invasion of France.
It can be seen like that but you should make clear that it assumes German single responsibility for the war, including for her Allies' actions against civilians, and also indirect consequences such as deaths caused by malnutrition.
Then you would arrive at 3.78 million deaths, worst-case