That size is too large in CS6 you get a message.
You said that worked with 2400 not 24000, I'll assume that you did not type that correctly.
I do not think layers/complexity of document has as much to do with this as your total pixel size, could you make 2 files and cut this in half. The save for web was not designed to work with such large sizes.