1 year of 1 price per second tick data is 60*60*24*252*16 = about 350 MB. So that should be normally not a problem. I suppose that the running out of memory has a different reason, like using more memory for something else. Can you post your script, or contact Support? They'll check.