Hi paul simpson,
Since you'd like to understand what's causing the crashes rather than try random fixes, I'd suggest starting with the crash logs and checking whether Windows recorded any related errors.
Could you confirm whether you're playing Java or Bedrock Edition, which version you're using and whether the crash happens with every world or just one? If there's an error message or exit code, please share that too.
If you're using Java Edition, press Windows + R, enter %appdata%.minecraft and check the crash-reports folder for the latest crash report. You can also find latest.log in the logs folder.
On the Windows side, press Windows + R, enter perfmon /rel and check for any Minecraft or Java errors around the time of the crash. If you find one, select View technical details and share the relevant error information. Please remove any personal information before sharing the logs or screenshots. Could you also press Windows + R, type winver and press Enter? Please share the Windows version and OS build number shown.
These details should give us a useful starting point for identifying the cause without making unnecessary changes.
Looking forward to hearing back from you.