Error loading Gh of rhino 8 in Rhino inside Revit

Object: Save (level 1)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}

Object: Save (level 2)
{
Could not load type ‘System.Drawing.Color’ from assembly ‘System.Drawing.Primitives, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’.
TypeLoadException
}

Object: Bake (level 1)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}

Object: Bake (level 2)
{
Could not load type ‘System.Drawing.Color’ from assembly ‘System.Drawing.Primitives, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’.
TypeLoadException
}

Above is the error that I’m facing while opening rhino inside revit in revit versions 21, 23 and 25. This is an error only with rhino 8 , rhino7 is working fine in rhino inside revit but Rhino 8 instantly closes the program as soon as I use the grasshopper.
I deleted all the plugins and used shift+control and GrasshopperLoadOneByOne command but nothing seems to work.

Hi Kshitijnashine96,

This might be a tough one, lets start troubleshooting by running SystemInfo in your Rhino command line and posting the result.

What Revit Addins are loaded?