Error analysis of crystalline ptychography in the STEM mode