This following might work.
Move the Audacity application to the Downloads folder. Start Audacity and attempt to record from the internal microphone. You should get a dialog asking for you to give permission to Audacity to use the microphone - do that. Stop recording and quit Audacity. Move Audacity back to the Applications folder. Start Audacity and attempt to record from the internal microphone.
– Bill