Kmode Exception errors on boot with NDIS.SYS

Running Avast Free Edition on a Dell Optiplex 3050 running Windows 10. Been trying to isolate why I have been getting random Kmode Exception BSOD’s on boot for about the last month. Checking the dump files it was always pointing to the ndis.sys file so I focused on the network adapter drivers . I never even looked at Avast as the possible cause. When updating NIC drivers and BIOS didn’t help and all hardware test including memtest386 all passed I was out of ideas so decided to reload Windows 10 clean. After doing so it seemed fine at least initially. Multiple reboot tests didn’t seem to trigger the problem anymore although since they were so random I wasn’t sure it wouldn’t resurface. Reloaded some of the other needed software including Avast. All seemed fine after that initially over at least 5 reboot attempts but then problem came back. I’ve taken Avast off again and so far in the last about 12 reboot tests its been fine

Is there any way to track how Avast fits into the problem and is there any way to correct it. I would like to keep using Avast if possible.

Have you checked to see if there are any driver updates?