I was getting this error when changing the name of a component:
Input is too long, max length is 256 characters
I finally figured out that I was trying to name it the same as an existing component. Good that it wouldn’t let me! The error condition was not caught so I was causing a seemingly random runtime error in your own code.