Let's assume a scenario according to the given picture. If we release the object from point $A$,common sense tells us that it will reach point $B$, then $C$, and then traverse the same path backwards,basically it will do a simple harmonic motion.
But the definition of simple harmonic motion is only proven when restoring force $F=kx$ where $k$ is a constant and $x$ is the distance from equilibrium. Hence the restoring force must vary with the position. Now, according to the figure the force hence acceleration of the object is always pointing towards $B$. So $B$ is our equilibrium or mean position. Now suppose we analyze the position of the object at any random position. And let the angle of the inclined plane with the horizontal in which that position is be $\theta$.
Now as we all know,the only force parallel to the plane is $mg\sin \theta$. So the restoring force towards the equilibrium position or $B$ is $mg\sin \theta$. But all of $m,g,\theta$ are constants here. So the restoring force is a constant regardless of the position and thus it can't be a periodic motion or SHM! Whereas common sense tells us that it is a periodic motion or SHM.
What is the error that we are making in this logic which doesn't match with the common sense scenario?
Please do not mark this question as a homework question. This is a scenario that genuinely came to my mind while thinking about SHMS.