Custom post processing shader not working in build

In a project that I am working on in Unity 6 with URP, a custom post processing full screen shader works perfectly in engine, but whenever I build it(I am building for Windows), the screen turns completely pink. I have tried adding the shaders to the Always Included Shaders list in the project settings, but the screen still turns pink. Just to test, I disabled post processing in one scene and it rendered perfectly. I also have one screen running only built in URP post processing and it works as usual. This project was started in Unity 2022.3.1f1 and then upgraded to Unity 6000.0.23f1(running in compatibility mode), which may have something to do with this. I have no idea what is causing this issue, if it is a problem on my part, or if it is a bug in Unity. All help is appreciated.

Bumping this post

Bumping this post

Bumping this post