When there will be BSOD then immediately after that check Event Viewer application error logs to get clue why it's crashing.
Open Event Viewer
Go to Windows Logs > System
Find the last "BugCheck" or "Critical" event
Copy/paste the error code or message here
CPU/GPU overheating or power delivery instability can cause system crashes.
Check temps using HWMonitor or MSI Afterburner.
Make sure your Power Supply unit is working properly. If you're on a desktop: bad PSUs cause random shutdowns/BSODs.