Both of these decisions were based on political whim rather than sound strategy. Both resulted in avoidable debacles. Worse decisions followed. A shrewder man than Hitler could have easily destroyed the Soviets. But by 1941 Hitler was unable to construct an effective plan against them. He defeated himself.
Of course, always having to pull Mussolini’s chestnuts out of the fire didn’t help matters for Hitler.