Avast service automatically stops

Hello,
This has happened twice in last week…
In both the instance, I have left my pc idle for around 30-45mins, and when I came back, I can see a cross on avast,
saying “services has stopped… its a bit embarrassing…restart/exit” after clicking restart, it fixes everything and resumes monitoring ?

Repair Avast:

  1. Control Panel → Add/Remove programs → Avast
  2. Click on ‘Repair’.
  3. Follow instructions.
  4. Reboot.