Using Twinmotion in revit failure

You need to read the installation instructions closely. Revit 2024 is only compatible with TM 2023.

Here is step by step and a chart showing which version of Revit works with which version of TM:

https://www.autodesk.com/support/technical/article/caas/sfdcarticles/sfdcarticles/Access-to-Twinmotion-for-Revit-users.html