In this sentence, "of the virus" is a phrase describing a noun ("spread"). For this reason, you would use "the" before the word, "spread."
In your second sentence, "spreading" is still being used as a noun (gerund), and therefore it sounds better to also insert, "the," before it.
Experts say that social distancing is the most effective way to stop the spread of the virus.
Experts say that social distancing is the most effective way to stop the spreading of the virus.
If you were to leave out the word, "the," in these sentences - it doesn't necessarily change the meaning of the sentence, but it doesn't sound right. By using "the," you differentiate the noun "spread" from the verb, "spread."
I hope that helps!