update the game patches
Generally, the bugs in the game are likely to cause the crashing, and Mojang keeps releasing the patches to improve Minecraft and fix bugs.
So you should install the patches and keep your game up to date. This helps fix some bugs that crash your game. You can download the latest Minecraft.
If you are using mods, you can try to remove the mods, uninstall and reinstall the latest version of Minecraft on your computer.
Update your graphics card driver
A missing or outdated graphics driver can cause Minecraft crashing in your Windows, so you can update your graphics card driver to fix the crashing.
There are two ways to update your graphics card driver: manually and automatically.
Manually update your graphics card driver – You can go to your graphics card manufacturer’s website, find the correct graphics card driver, and install it on your computer. This requires time and computer skills.