Why is my pc restarting more than 20 minutes

You will need to provide further info for anyone to help
For Example:
Which OS
Which Avast
What version etc.