Assert while navigating with the ion-menu open

I am upgrading to ionic 6, following the official guide.
Everything works fine except the navigation in my ion-menu. When I use the buttons inside the ion-menu to navigate to another page (with the useHistory hook) i get the following assert : ASSERT: _before() should be called while animating

It seems to be related to some unfinished animation on the ion-menu when the navigation happens, see issue 1 and issue 2.

But the thing is I do not open or close the ion-menu in my code, I just use an ion-menu-button, and it was working before the upgrade. I don’t really see what to do to fix this. Any ideas ?