Help to improve table function splitting over pages

I have not so many csv table files, so I can’t reproduce ur result. But it seems that ur tables are fine but the outline(ToC) is wrong? Perhaps a custom outline will solve it!
See also How to customize the body of an outline entry? and Outline Function – Typst Documentation