The reason is WordPress makes different sizes of images(i.e thumbnail,medium,large & full) when you upload the image.
If image is already uploaded and after that you declare the new size then that image size is not going to be there.
So you can solve this by two ways
- you need to regenerate the thumbnails using some plugin like
Regenerate Thumbnails
- Upload the image again
All the best