Thanks for bringing this up.
This is explained by the fact that the accordion content is set to an absolute position with visibility: hidden, which explains why long content might cause this issue.
overflow:hidden; seems like a good solution here, but does add some constraints to the content.
i am struggling with the same kind of issue since yesterday ! i was writing to report a bug when the nice feature of this post editor suggested me that my bug was similar to your post
thanks to you i can now move on to something else, thank you @Jonas !