Hi @Avyayah ,
Suggest you manual checkpoint tempdb to clear out the log. TempDB is in SIMPLE recovery model, SQL Server attempts to clear the log whenever a CHECKPOINT is issued. This is why doing a manual CHECKPOINT frees up the space. Automatic CHECKPOINT operations on tempdb are only done when the log usage reaches 70%.
Then run the below query to analyze the transaction log for tempdb. Looking at the operation in the log.
SELECT
[Current LSN],
[Operation],
[Context],
[Transaction ID],
[Log Record Length],
[Description]
FROM fn_dblog (null, null);
GO
Please refer to the blog Understanding data vs log usage for spills in tempdb.
If the response is helpful, please click "Accept Answer" and upvote it, thank you.