Liquid-cooled rare earth battery