TSMC reported another quarter of record profit, with the company expecting AI demand to continue to grow.