Sometimes Windows limits the ram usage of games made with gamemaker. The only solution I've found is to restart the computer.