Thanks for the clarification.
Temporarily uninstall Avast using the removal tool provided by the developer and see if the system will work stable.
Don't worry. When there is no third-party antivirus installed, Microsoft Defender takes over.
If the BSOD occurs again after uninstalling it, share the minidump created by it. Click on the "Reply" button below my reply.
Feel free to ask back any questions.