Make a constant `MAX_ALLOWED_FEEDBACK_LENGTH = 5000` at the top of the file and use it here instead.