I tried different programs: discord, telegram, audasity. And as far as I remember, I didn't have this problem with Windows, using the same computer and microphone. In any case, this problem is not critical for me, so I will follow your advice if nobody will suggest a solution.