Why does the directory generated by my WORD include a lot of text content?

It can be solved in this way: you find the original text where the error occurred, select it, right-click it, and select Paragraph. There is Outline Level under Indentation and Spacing, and you can set the table of contents here. If it is text, you can select text, and if it is other table of contents, you can select it according to the level.