Glitchy animated dropdown menu

I keep running into an issue with a menu header I’m designing. I’ve set it up as a series of buttons, some of which trigger drop down menu categories (also buttons) when clicked. They work fine initially and navigate to different pages, but after a certain point the drop down menus don’t reappear when clicked, almost as if the animation has timed out. They seem to reset eventually, but the buttons get very glitchy. This issue doesn’t seem to occur with menu items that don’t trigger any drop down items.

Any ideas how to resolve this? Thank you!