Well, I completely uninstalled and reinstalled avast, and the issue seems to be gone. Although I had a BSOD with the BAD_POOL_HEADER few minutes later I reinstalled avast.

According to some information I found on the web, this error (it’s the first time see it) means:

This error is generated when a driver or part of Windows does not allocate the memory properly, and can be caused by any of the below possibilities.

Bad hardware drivers.
Issues with NTFS file system or disk write issues.
Issue with software program, e.g. anti-virus scanner.

My issue seems to be resolved by reinstalling avast.