Well if the Soviets not been allies with Hitler in order to carve up Poland beforehand, maybe they wouldn’t have been in the position to lose so many later on.
Stalin killing all his best officers before the war didnt help any.