Problem
TableOfContents uses role="tree" which is not meant for this type of element (go here for more info). Currently the element is failing WCAG.
Solution
Remove incorrect role usage and add aria-label for instance to mark it as table of contents.