Put it right after the fail lands as the closing beat of the scene, not under dialogue. For a tech mishap lead in with the Windows XP Error Sound, and if the joke needs a second sting afterwards, follow it with the Womp Womp Fail Sound instead of adding more dialogue.
حول هذا الصوت
This 13-second clip is the sung opening line 'Hello darkness, my old friend' delivered over gentle folk accompaniment. Hearing it feels somber and melodramatic, turning a small setback into quiet, exaggerated despair that listeners instantly read as funny defeat. It comes from The Sound of Silence by Simon and Garfunkel.