Lagging When Overdubbing

How do you fix the lag on Audacity? I finally got a new mic and there’s no static, but now when I record it lags AND I can hear my voice through the headphones and its throwing me off. When I turn off “Software play through input” it malfunctions and doesn’t let me record. I have Audacity 2.3.3
thanks for any help that I receive in advance