Trying to use “Medium” featured image for custom post type on home page

Check that medium size of that image is generated or not.

if image is not generated then original image size must be lower then medium size image height width.

If the image size is bigger then you can regenerate thumbnail again. hope it will help.

error code: 523