I am currently writing in-game settings for my game using HDRP. The high shadow filter in unity is a very beautiful, but capacious rendering process, and therefore I wanted to make it possible to change this parameter in the settings. I studied the structure that stores the parameters of the hdrp asset and wrote a function to change this shadow filter. Everything works fine in the editor, but problems occur in the build of the game. I do not know how to fix it.
Changing filter in editor (Video)
Changing filter in development build (Video)
Changing method:
The following errors come out in the Development build console:

