GammaCorrectionShader is an addon, and must be imported explicitly, see Installation#Addons.
import { GammaCorrectionShader } from 'three/addons/shaders/GammaCorrectionShader.js';
Gamma Correction Shader
References:
examples/jsm/shaders/GammaCorrectionShader.js