Minecraft crashes with shader?

Ar
2

When I go to minecraft and change the shader in the game, it just keeps crashing and I've already done it from the main menu, it just doesn't work, please help me

Ha

See if there's a "Lite" version of the shader or try another one. It is possible that you are underperforming.

But it can also be that you are using a shader for another Minecraft version, because it also crashes.

Ma

I don't know if that will help but just give it a try:

Start Minecraft
Go on installations
Select the appropriate version and go to the 3 dots and edit
Go to more options
JVM arguments should start with something with 2G, instead of the 2 you write a 4
then save and start Minecraft