I don't believe you can - I don't see NAME_MAX in SAM.
If there is no utility to change NAME_MAX, you would need to edit /usr/include/limits.h and /usr/include/sys/stdio.h, and recompile the kernel and any utilities that rely on the value of NAME_MAX (assuming you have the source code).
This is no trivial task, and probably a Bad Idea.