Hi and welcome to the forum.
Try a few things
- ensure you do not have an SD card installed as Internal
- Disable the 'Digital Wellbeing app
- Disable google access to the mic
and
See Android 10: Reboot restores audio recording capabilities - #6 by Antoine