The message refers to Hunk 16.
This GitHub discussion is probably related to your issue.
It is about _patch unexpectedly ends in middle of line_ messages because of CRLF (carriage-return, linefeed) issues when git generated diffs are used with patch.
To quote the conclusion:
> [..] git can be very picky about line endings. Are you on windows or not? At any rate, you should probably set autocrlf in the git config. If you're on windows, you want "true", if you're on mac or linux, you should use "input" [..]
In the article Dealing with line endings GitHub details the above statement.