It might be possible that there are rows with length > 15 selected early on in the query plan which are filtered out later.
If you change the query, the query plan might change as well and in some part of the plan the maximum length is violated.
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP