Vagrant stopped working in between

Vagrant stopped working for me very frequently when it is idle for more than 3-4 mins. And then i need to do the vagrant halt and vagrant up.

my vagrant version is - 2.2.17 and I am using it on Macbook pro.

Do anyone have any clue why this is happening. I have already did re-intallation 3-4 times. But this is behaving in same manner.