Have you pressed the mic button accidentally when plugging in the headphones?
Please try to restore the Google app to default settings.
( settings > apps & notifications > see all apps >Google > storage & memory >clear storage & cache)
Please to check there's debris stuck in the jack.
Also, I suggest you can use another headset for a check.