We started ensuring we only insert valid destinations: https://github.com/element-hq/synapse/pull/17240