I get that error file one in awhile...it happens if i have my render distance to far (i have a 32 bit computer so it can't handle it.) to change to normal render distance you would press 'Esc' and click on options, the render distance would be in the top right.
if you don't have a 32bit computer then i don't know how to help.
if you don't have a 32bit computer then i don't know how to help.