could not reshape input array shape question

I tried to reshape the image array
original image shape is (224,224,3)

trainImages = np.array([i[0] for i in train_datas]).reshape(-1, IMG_SIZE, IMG_SIZE,3)

ValueError: cannot reshape array of size 502562816 into shape (224,224,3)

How should I reshape it when I want to get a (224,224,3)