My mistake, I added this when rebasing and didn't notice that it was a .glsl file and thus the availability of Math was not confirmed by the C++ compiler.
ERR_FAIL_COND
ERR_FAIL_NULL