Stochastic Switching and Reduction of Integrity in Atomic Force Microscopy