Oh, that reminds me of this discussion. It was about viewing files, but the same is true for subpages.
10 thousand subpages may be more than Kirby can take. I remember Bastian writing that it should work well up to a few hundred subpages, but it has not been designed for huge “vertical” page trees. With that many contents a CMS with a database is probably better suited.