Here's a problem that seems related to me. This was from a dynamics textbook from long ago. The problem is flawed, fatally flawed. Anyway, this was in a section of the book dealing with energy theory, and presumably that is how it was to be worked. The question was: Given the mass, spring constant, and dimensions as shown, it is desired to swing the mass/pendulum down at the right velocity so it stops at the position marked A. So what initial velocity is necessary to do this?
You can in fact work the problem using energy theory and get an answer. However, what immediately struck me is that when it gets in position A, it has to be accelerating downward at that point in time (due to gravity) and consequently can't very well stop at that position. The problem in this case is that you equate the potential energy from two different positions, but it can't get from one to the other without passing through a state of higher energy first. So at the "right" setting, it would flip over partway, and bounce back. At any higher initial velocity, it would keep going past the horizontal.
A related problem that illustrates the issue is if you are asked to roll a ball such that it stops on top of a hill. In theory at least, this can be done. But, if there is a bigger hill between you and the hill in question, then there is no solution, and that is the case with the spring-pendulum shown here.
I was in a class of maybe 20 or 30 people. None of the rest noticed this. The textbook writer didn't. I could not persuade the professor that anything was wrong here, either.