Internal Server Error for Defender

When trying to update a post/page, the site getting down with Internal Server Error message. But the thing is fine when Defender is disabled.