It's been a long time since I have used WhatsApp, but as I recall you have to give permission to WhatsApp when you initially install the app. You need to check either WhatsApp internal settings to ensure you it still has access to your phone's contacts turned on, or check the app settings under iphone's settings. You list your os as ios17, but if your phone auto-updated to ios18, this could be what caused it to go "off" as the screen might look like it blanks out for a short period during updates. Check your os version in the settings.
Pretty sure everything is fine, try going to your phone settings and scroll to the bottom. If you find the "Apps" category, then your phone did update to ios18. Tap on apps and scroll to WhatsApp. Otherwise, just scroll to WhatsApp and tap on it. You should see toggles for contacts and microphone. If they are on, try toggling off and back on, otherwise just turn them on. If that doesn't work, yeah, try WhatsApp internal setting. Sorry, I can't help you with those since I am not on WhatsApp anymore and I'm sure it has changed a lot since I was.
If messing around with either settings doesn't work, your best bet is to delete and reinstall. Just be sure you look up the information about reinstalling (check this link https://faq.whatsapp.com/1197347060992858/?cms_platform=iphone&helpref=platform_switcher) for instructions on backing up your chats, reinstalling on the same type of phone, reregistering on the same phone number. It's a pain, but if all else fails, that should get everything back to the correct configurations. Hopefully that helps.