Train a deep learning model in chunks/sequentially to avoid memory error
Pandas is not memory efficient for data loading.

It appears you are using Keras / TensorFlow package. It would be better to use that package's data loading for csv which will better manage memory.