Put it immediately after the failed moment in your edit, once the mistake is visible on screen. Follow it with Vine Boom to underline the impact, then add Dun Dun Dun as a closing beat that lets the failure sink in before the next scene begins.