Oracle Message ORA-24276 - function string output string maximum value exceeded

ERRORfunction string output string maximum value exceeded
CAUSEThe function computed a value for the output that exceeded the maximum allowed. This can occur when multiple input parameters, each valid separately, combine to specify an invalid result. For example, when a length parameter multiplied by a copies parameter yields a total length exceeding the maximum for the output datatype.
ACTIONCorrect the input values to produce a result that will comply with the limits as specified in the documentation.