Under extended loads like video encoding or cpu intensive gaming where the cpu is running full out (or close to it) for hours at a time the stock cooler can have issues keeping a stock cpu cool. It will depend some on ambient room temps but the stock cooler isn't meant for overclocking. It just doesn't have enough cooling capacity, no heat pipes which further improve cooling efficiency, smaller fan etc.
You're much better off getting something like a 212 evo or cryorig h7 for mild to moderate overclocks.
Here's some ideas of size reference, this is the stock intel cooler vs zalman cnps10x
This is the stock cooler next to a 212 evo
As you can see the stock cooler is a pretty pitiful affair. Other coolers are larger than those two.