Companies that experience moderate to severe ESG controversies could face losses. This is worth $400 million on average, according to Moody's Analytics.