
The block is most likely to slip when there is maximum acceleration.
This happens when the blocks are at the extremities where the displacement is either $+A$ or $-A$.

$ x = 2 \sin \omega t \,;$ $ y = 2 \sin \left( {\omega t + \frac{\pi }{4}} \right)$
The path of the particle will be :

