Alternatively, you can use blockchain data APIs that have indexed data. Bitquery for example, has a token holder API that gives you the exact count and details of token holders at a point in time.
Examples:
- https://docs.bitquery.io/docs/examples/token-holders/token-holder-api/#token-balance-of-an-address-on-particular-date
- https://docs.bitquery.io/docs/examples/token-holders/token-holder-api/#total-token-holder-count
Full disclosure, I work at Bitquery