Scan speed limit in atomic force microscopy