Computer gets BSOD while virus scanning

As the title says my computer keeps blue screening while I'm running a virus scan with avast antivirus. This is a fairly new occurrence and only happens while running avast scans. I have no idea what could be causing it (I'm assuming avast but I don't know) it happens at seemingly random amounts of completion in the scan. first time 65%, second time 3% and the most recent time was around 10%.

If anyone knows what's causing this I would really appreciate help, and if it is in fact avast that is the problem I would appreciate recommendations on replacements.


If it's relevant my computer specs are:

Intel i5 4690k (stock cooler)

Asus Z97M-plus motherboard

Kingston HyperX Blu 1600MHz RAM (8GB)

MSI R9 280 3G Gaming graphics card


Seagate Barracuda 2TB hard drive.