[Experimental] NPC infinite loop and turning off debug messages

How do I turn off these awful debug messages? Simply hitting " show debug message " in the debug menu doesn’t change anything…

apparently this issue fixes itself after restarting the program?