Trying to install KitKat on xperia Ray
The reason for the error is, you have downloaded the wrong package. The downloaded package is not compatible for ray.

To download the original package and detailed installation tutorial, read my article given below:

How To Install KitKat 4.4.2 On Sony Xperia Ray

Hope this helps.