For the sake of memory consumption and speed your should reduce the size / image depth of your image data.
Image → Adjust → Size
Set the width to 1024. The height is calculated automatically.
Press OK.
Image → Type → 8 Bit Wait until the processing is finished.