@HusainIbrahem-6130 Welcome to Microsoft Q&A thanks for posting your question.
SQL MI is the same as a SQL Server. The same methods of using combinations of DBCC commands might help. The web is full of the proposed solutions for this problem, but ultimately a failover will help if nothing else does.
Here is the article which can be helpful in configuring the maximum size of TempDB in Azure SQL Managed Instance and how to configure the maximum size of TempDB using the ALTER DATABASE command, which allows you to set a maximum size for the TempDB data file(s) and prevent them from growing excessively.
Regards
Geetha