Do you hear clicking from the extruder when this happens? It could be a clogged nozzle or some other source of friction in the filament path. Also, the layer height you mentioned, 0.3 mm, is too thick for a 0.4 mm nozzle. In general, layer height should be no more than half the nozzle width.