Added warning if the memory is too large in Lyra