Although we need more information, like what is the content of your cursor/procedure, I would hazard a guess that a VARCHAR2 variable is not large enough.
Are there any points in your code where you are doing a loop (cursor or otherwise) and you are concatenating the contents of a string to itself? Or do you have a variable defined which is of insufficient size for some of the data in your cursor loop?