As a complete anecdote - I remember when my parents told me when I was very little that eating rotten/mouldy food could get you seriously ill, I think I even asked if you could die from it - to which they said that yes, you could.
And after that, I had a complete phobia of everything that seemed even slightly off. I became incredibly picky, because that one spot on the slice of cheese could be mould or because the ham smelled not how my 8 year old brain thought it should smell like.
No spanking involved, but the psychological damage was much greater I think.