Thanks for your answer and sorry for the late response.
Because of a business decision, the accordion was removed from the proposed solution and we moved to the Tab component.
Unfortunately, it seems tabs have the same issue. We created a component similar to the Tab component.
I totally agree with your technical explanation. Once again, thank you for your response.